{layout name="public/layout" /}
<link rel="stylesheet" href="https://css2020.yixuan.net/2020css/yx2020/css/bootstrap-select.min.css">
<script  src="https://css2020.yixuan.net/2020css/yx2020/js/bootstrap-select.min.js"></script>
<script  src="/resource/components/jplayer/jquery.jplayer.min.js"></script>

<script type="text/javascript" charset="utf-8"  src="/resource/components/ueditors/ueditor.config.js?v=1"></script>
<script type="text/javascript" charset="utf-8" src="/resource/components/ueditors/ueditor.all.min.js?v=1"></script>
<script type="text/javascript" src="/resource/components/ueditors/lang/zh-cn/zh-cn.js"></script>
<link href="/resource/components/ueditors/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">


<script>
	var ueditorObj = {}
</script>


{include file='yxnavbar'}
<style>
	.table td span{display:inline-block;margin-top:4px;}
	.table td input{margin-bottom:0;}
</style>
<form class="form-horizontal form" action="" id="form1"  method="post" enctype="multipart/form-data">
	<ul class="nav nav-tabs">
		<li role="presentation" class="active"><a href="#basic" aria-controls="basic" role="tab" data-toggle="pill">
			{$softtips}</a></li>
		<li role="presentation" class=""><a href="#imgset" aria-controls="imgset" role="tab" data-toggle="pill">{php echo $system['ispresale']==1?'预热图文':'图文内容';}</a></li>
	{if !($system['isform']==1 && $config['form_mode']>0)}
		{if ($config['koi_lottery_main']!=1 && $system['ruanjian']!= 5 && $system['ruanjian']!= 10) && ($system['isdianliang']==1 || $config['isicon']>0) }
		<li role="presentation" class=""><a href="#dianliangset" aria-controls="dianliangset" role="tab" data-toggle="pill">点亮图标</a></li>
		{/if}
		{if $system['fenxiao']==1}
		<li role="presentation" class=""><a href="#comm" aria-controls="comm" role="tab" data-toggle="pill">{php echo $system['isCommPoints']==1?'积分设置':'分销红包';}{php echo \app\model\Theme::get_cert_status($system);}</a></li>
		{/if}

		{if  $system['lottery']==1}
		<li role="presentation" class=""><a href="#grid_lottery" aria-controls="grid_lottery" role="tab" data-toggle="pill">九宫格抽奖</a></li>
		{/if}

		{if $system['yx_coupon']==1}
		<li role="presentation" class=""><a href="#yx_coupon" aria-controls="yx_coupon" role="tab" data-toggle="pill">优惠券</a></li>
		{/if}

		<!--微客模式-->
		{if $system['ruanjian']==10}
		<li role="presentation" class=""><a href="#weike" aria-controls="weike" role="tab" data-toggle="pill">微客配置</a></li>
		{/if}
		<!--红包雨配置跳转标签-->
		{if $system['redrain']>0}
		<li role="presentation" class=""><a href="#grid_redrain" aria-controls="grid_redrain" role="tab" data-toggle="pill">红包雨配置</a></li>
		{/if}
		<!--代言模式-->
		{if $system['daiyan']>0}
		<li role="presentation" class=""><a href="#grid_daiyan" aria-controls="grid_daiyan" role="tab" data-toggle="pill">代言配置</a></li>
		{/if}
		<!--领泽新宝箱-->
		{if  $system['is_lz_chest']==1}
		<li role="presentation" class=""><a href="#is_lz_chest" aria-controls="is_lz_chest" role="tab" data-toggle="pill">领泽新宝箱</a></li>
		{/if}
		{if $system['fanpai']==1 || $system['islottery']==1}
		<li role="presentation" class=""><a href="#fanpai" aria-controls="fanpai" role="tab" data-toggle="pill">翻牌抽奖</a></li>
		{/if}
		{if $system['ruanjian']=='5'}
		<li role="presentation" class=""><a href="#bargain" aria-controls="bargain" role="tab" data-toggle="pill">砍价配置</a></li>
		{/if}
		{if $system['iskoi']=='1' }
		<li role="presentation" class=""><a href="#five_koi" aria-controls="five_koi" role="tab" data-toggle="pill">领泽抽奖</a></li>
		{/if}
		{if $system['is_lz_game']=='1'}
		<li role="presentation" class=""><a href="#lz_game" aria-controls="lz_game" role="tab" data-toggle="pill">宝妈拼拼看</a></li>
		{/if}
	{/if}
		<!-- <li role="presentation" class=""><a href="#shareset" aria-controls="shareset" role="tab" data-toggle="pill">分享设置</a></li> -->
		<li role="presentation" class=""><a href="#formset" aria-controls="formset" role="tab" data-toggle="pill">{php echo $system['ispresale']==1?'预热表单':'表单设置';}</a></li>

		{if $config['koi_lottery_main']!=1 && $system['ruanjian']!=10}
		{if $system['is_mystery_boxes']>0 || $system['is_mystery_boxes_feichi']>0}
		<li role="presentation" class=""><a href="#mystery_boxes_set" aria-controls="mystery_boxes_set" role="tab" data-toggle="pill">盲盒设置</a></li>
		{/if}
		<li role="presentation" class=""><a href="#wenziset" aria-controls="wenziset" role="tab" data-toggle="pill">按扭文字</a></li>
		{/if}

		{if ($system['wxapp']!=0 && $system['softmode']!=0) }
		<li role="presentation" class=""><a href="#wxapp" aria-controls="wxapp" role="tab" data-toggle="pill">小程序</a></li>
		{if $system['live']==1 && $config['koi_lottery_main']!=1}
		<li role="presentation" class=""><a href="#live" aria-controls="live" role="tab" data-toggle="pill">小程序直播</a></li>
		{/if}
		{/if}
		<li role="presentation" class=""><a href="#mobileset" aria-controls="mobileset" role="tab" data-toggle="pill">员工权限</a></li>
		<li role="presentation" class=""><a href="#shareset" aria-controls="shareset" role="tab" data-toggle="pill">分享设置</a></li>
		{if $system['ispresale']==1}
		<li role="presentation" class=""><a href="#presaleset" aria-controls="presaleset" role="tab" data-toggle="pill">补款图文</a></li>
		{if $system['fenxiao']==1}
		<li role="presentation" class=""><a href="#presalefenxiao" aria-controls="presalefenxiao" role="tab" data-toggle="pill">补款分销</a></li>
		{/if}
		<li role="presentation" class=""><a href="#presaleformset" aria-controls="presaleformset" role="tab" data-toggle="pill">补款表单</a></li>
		<li role="presentation" class=""><a href="#presaleshareset" aria-controls="presaleshareset" role="tab" data-toggle="pill">补款分享</a></li>
		{/if}


<!--		<li role="presentation" class=""><a href="#sms" aria-controls="sms" role="tab" data-toggle="pill">短信</a></li>-->
		<li role="presentation" class=""><a href="#otherset" aria-controls="otherset" role="tab" data-toggle="pill">其它设置</a></li>
		{if $_G['isSuperAdmin']}
		<li role="presentation" class=""><a href="#" onclick="goto_url('system')" aria-controls="urlset" role="tab" data-toggle="pill"  >参数设置</a></li>
		{/if}
		{if $config['ad_style']==1}
		<li role="presentation" class=""><a href="#" onclick="goto_url('ad')" aria-controls="urlset" role="tab" data-toggle="pill"  >广告</a></li>
		{/if}
		{if !$config['ad_style']}
		<li role="presentation" class=""><a href="#adset" aria-controls="adset" role="tab" data-toggle="pill">广告</a></li>
		{/if}
		{if $id>0}
		<li role="presentation" class=""><a href="#" onclick="goto_url('qrcode')" aria-controls="urlset" role="tab" data-toggle="pill">二维码</a></li>
		{/if}
	</ul>
	<div class="main">
		<div class="tab-content" style="">

			<div class="tab-pane active" id="basic">

				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">活动信息</div>
					<div class="panel-body" style="">
						<input type="hidden" name="last_config_key" value="{$last_config_key}" />
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>活动主标题</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="title"  value="{$theme['title']}">
								{if $system['ispresale']==1 && $config['yukuan']>0 && TIMESTAMP>$config['yukuantime']}
								<span class="help-block" style="color:#3d8829;">已到补款时间，改标题请移步到补款图文中修改</span>
								{/if}
								<span class="help-block">活动主标题,精而简,建议15字左右,尽量不要超27个汉字,不可包含特殊符号、广告法禁用词以及微信违规词</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动副标题</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="desc" value="{$theme['desc']}">
								<span class="help-block">活动副标题,建议40字以内,不可包含特殊符号</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color: red;">*</span>起止时间</label>
							<div class="col-sm-8 col-xs-12">
								<div class="col-sm-6 col-xs-12">
									{php echo view_form_field_daterange('themetime', array('start'=>date('Y-m-d H:i:s',$theme['begintime']),'end'=>date('Y-m-d H:i:s',$theme['endtime'])), true);}
									<span class="help-block">活动的起止时间，时间段内活动有效</span>
								</div>
								{if $system['ispresale']==1}
								<div class="col-sm-6 col-xs-12">
									<div class="input-group">
										<span class="input-group-addon">预售结束时间</span>
										<select class="form-control" name="presale_endtime_mode">
											<option value="0" {if $config['presale']['endtime_mode'] == 0 }selected="selected"{/if}>默认</option>
											<option value="1" {if $config['presale']['endtime_mode'] == 1 }selected="selected"{/if}>已补款时间为准</option>
										</select>
									</div>
								</div>
								{/if}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动状态</label>
							<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
								<label class="radio-inline">
									<input name="theme_status" value="0" {if $theme['status']==0} checked="checked"{/if} type="radio"> 暂停
								</label>
								<label class="radio-inline">
									<input name="theme_status" value="1" {if $theme['status']==1} checked="checked"{/if} type="radio"> 启用
								</label>
								<label class="radio-inline">
									<input name="theme_status" value="2" {if $theme['status']==2} checked="checked"{/if} type="radio" onclick="if(!confirm('确认结束？')) return false;"> 结束
								</label>
								{if $_G['isSuperAdmin'] && $theme['status']==3}
								<label class="radio-inline">
									<input name="theme_status" value="3" {if $theme['status']==3} checked="checked"{/if} type="radio"> 达到流量峰值
								</label>
								<span class="help-block">达到流量峰值，请在OA里控制开启与关闭</span>
								{/if}
							</div>
						</div>
						{if $_G['isSuperAdmin']}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">软件激活码</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="softsn" id="softsn" value="{$theme['softsn']}">
								<span class="help-block">未激活:电脑无法查看定单管理与结账,手机版无法添加员工及管理</span>
							</div>
						</div>
						{/if}
					</div>
				</div>
				<div class="panel panel-default" role="tabpanel" style="">
					{if $system['ruanjian']!=5}
					<div class="panel-heading">价格设置</div>
					<div class="panel-body" style="">
						{if $system['ruanjian']==1 || $system['is_multiple_merchants'] && $system['softstyle']==104}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">报名费</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
								</div>
								<span class="help-block">价格为空为免费报名</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动限购</label>
							<div class="col-sm-10 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">限购</span>
									<input type="text" class="form-control"  placeholder="" name="renshu"  value="{$config['renshu']}">
									<span class="input-group-addon">单位</span>
									<select class="form-control" style="width: 80px;" name="renshudanwei">
										<option value="个" {if $config['renshudanwei'] == "个" }selected="selected"{/if}>个</option>
										<option value="人" {if $config['renshudanwei'] == "人" }selected="selected"{/if}>人</option>
										<option value="套" {if $config['renshudanwei'] == "套" }selected="selected"{/if}>套</option>
										<option value="单" {if $config['renshudanwei'] == "单" }selected="selected"{/if}>单</option>
										<option value="CM" {if $config['renshudanwei'] == "CM" }selected="selected"{/if}>CM</option>
									</select>
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="renshumode">
										<option value="0" {if $config['renshumode'] == 0 }selected="selected"{/if}>达到多少人享受优惠，达到人数还可报名</option>
										<option value="2" {if $config['renshumode'] == 2 }selected="selected"{/if}>达到多少人享受优惠，达到人数活动结束</option>
										<option value="1" {if $config['renshumode'] == 1 }selected="selected"{/if}>限购剩余多少，剩余为0活动结束</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动限购提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="为空为默认值" name="renshutips"  value="{$config['renshutips']}">
								<span class="help-block">限量#renshu个名额，已报名#baoming人</span>
								<span class="help-block">限量#renshu个名额，还剩余#shengyu个名额</span>
								<span class="help-block">已有#baoming孕妈晒出腹围，拼在一起已达#fuwenCM（注：腹围请用【①文本/日期】统计）</span>
							</div>
						</div>
						{elseif $system['softstyle']==5}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">全款加盟价</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="groupprice"  value="{$config['groupprice']}">
								</div>
								<span class="help-block">如：支付999元全款加盟</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金听课价</label>
							<div class="col-sm-5 col-xs-12">

								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="primeprice"  value="{$config['primeprice']}">
								</div>
								<span class="help-block">如：预付9.9元线上听课</span>

							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">线上定金</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
								</div>
								<span class="help-block">线上定金为空则以上上面实际金额支付</span>
							</div>
						</div>

						{else}
						{if $system['ruanjian'] == '0'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">市场价</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="marketprice"  value="{$config['marketprice']}">
								</div>
								<span class="help-block">市场价为空则不显示折扣价,即首图下方原价多少,几人团多少价的提示不显示</span>
							</div>
						</div>
						{/if}


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">拼团价{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}①{/if}</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="groupprice"  value="{$config['groupprice']}">
								</div>
							</div>
						</div>
						{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">拼团价②</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="groupprice2"  value="{$config['groupprice2']}">
								</div>
							</div>
						</div>
						{/if}
						{if $system['bottom_jiage'] == '2'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">拼团价③</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="groupprice3"  value="{$config['groupprice3']}">
								</div>
							</div>
						</div>
						{else}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">单买价</label>
							<div class="col-sm-5 col-xs-12">

								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="primeprice"  value="{$config['primeprice']}">
								</div>

							</div>
						</div>
						{/if}
						{if $system['jiage'] <1 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">￥</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
								</div>
							</div>
						</div>
						{else}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金描述</label>
							<div class="col-sm-5 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="duojiagetips"  value="{$config['duojiagetips']}">
								<span class="help-block">如：拍摄类型 产品类型 服务类型</span>

							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金1</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">名称</span>
									<input type="text" class="form-control"  placeholder="" name="joinname"  value="{$config['joinname']}">
									<span class="input-group-addon">金额</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee"  value="{$config['joinfee']}">
								</div>
								<span class="help-block">如：婚纱照收100元，儿童/写真收50元</span>
							</div>
						</div>
						{/if}
						{if $system['jiage'] >0 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金2</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">名称</span>
									<input type="text" class="form-control"  placeholder="" name="joinname2"  value="{$config['joinname2']}">
									<span class="input-group-addon">金额</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee2"  value="{$config['joinfee2']}">
								</div>
							</div>
						</div>
						{/if}
						{if $system['jiage'] >1 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">定金3</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">名称</span>
									<input type="text" class="form-control"  placeholder="" name="joinname3"  value="{$config['joinname3']}">
									<span class="input-group-addon">金额</span>
									<input type="text" class="form-control"  placeholder="" name="joinfee3"  value="{$config['joinfee3']}">
								</div>
							</div>
						</div>
						{/if}

						{if $system['ruanjian']!=10}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">成团人数</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">团{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}①{/if}</span>
									<input type="text" class="form-control"  placeholder="" name="maxcountall"  value="{$config['maxcountall']}">

									{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
									<span class="input-group-addon">团②</span>
									<input type="text" class="form-control"  placeholder="" name="maxcountall2"  value="{$config['maxcountall2']}">
									{/if}
									{if $system['bottom_jiage'] == '2'}
									<span class="input-group-addon">团③</span>
									<input type="text" class="form-control"  placeholder="" name="maxcountall3"  value="{$config['maxcountall3']}">
									{/if}
								</div>
								<input type="hidden" name="maxcount" value="{$config['maxcount']}" />
							</div>
							{if $config['maxcountall']>1 || $config['maxcountall2']>1}
							{if $config['yukuan']>0}
							<div class="col-sm-2 col-xs-12">
								<div class="input-group">
								<span class="input-group-addon">统计</span>
								<select class="form-control" name="tuan_yukuan">
									<option value="0" {if $config['tuan_yukuan'] == 0 }selected="selected"{/if}>全部定单</option>
									<option value="1" {if $config['tuan_yukuan'] == 1 }selected="selected"{/if}>只算补款+全款</option>
								</select>
								</div>
							</div>
							{/if}
							<div class="col-sm-1 col-xs-12">
								<a href="{php echo createWebUrl('record',array('op'=>'RenewTuan','id'=>$theme['id']));}" class="btn btn-info"> 更新团人数</a>
							</div>
							{/if}
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">拼团模式</label>
							<div class="col-sm-6 col-xs-12">
								<div class="col-sm-7 col-xs-12">
									<select class="form-control" name="tuanmode">
										<option value="0" {if $config['tuanmode'] == 0 }selected="selected"{/if}>正常拼团</option>
										<option value="1" {if $config['tuanmode'] == 1 }selected="selected"{/if}>无限成团,团满依旧可以加入</option>
										{if $system['ruanjian']==2 }
										<option value="2" {if $config['tuanmode'] == 2 }selected="selected"{/if}>团满后才可开新团</option>
										<option value="3" {if $config['tuanmode'] == 3 }selected="selected"{/if}>团满后才可开新团,团满依旧可以加入</option>
										{/if}
									</select>
								</div>
								<div class="col-sm-5 col-xs-12">
									<select class="form-control" name="newgroup">
										<option value="0" {if $config['newgroup'] == 0 }selected="selected"{/if}>默认</option>
										<option value="1" {if $config['newgroup'] == 1 }selected="selected"{/if}>原团未满，团员保留原团身份，可开新团当团长</option>
										<option value="2" {if $config['newgroup'] == 2 }selected="selected"{/if}>原团已满，团员保留原团身份，可开新团当团长</option>
										<option value="3" {if $config['newgroup'] == 3 }selected="selected"{/if}>原团未满，团员保留原团身份，自动成为团长</option>
										<option value="4" {if $config['newgroup'] == 4 }selected="selected"{/if}>原团已满，团员保留原团身份，自动成为团长</option>
									</select>
								</div>
								{if $config['newgroup'] > 0 }
								<span class="help-block">团员保留原团身份，团员可开新团当团长，可设置团长福利图：尺寸1080*260px；参考文案：您也可以开团做团长，拼团成功后，团长将额外获得价值399元的儿童平衡车一辆<a style="color: #000000" href="https://css2020.yixuan.net/2020css/yx2020/images/newgroup.psd" target="_blank">点击下载模版</a></span>
								{/if}
							</div>
							{if $config['newgroup'] > 0 }
							<div class="col-sm-3 col-xs-12">
<!--								团长福利图-->
								{php echo view_form_field_image('newgroup_img',$config['newgroup_img']);}
							</div>
							{/if}
						</div>
						{/if}
						{if $system['is_mother_boxes']==1}
						{elseif $system['ruanjian'] == '2' }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">线上补余款</label>
							<div class="col-sm-10 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">全款金额</span>
									<input type="text" class="form-control"  placeholder="" name="yukuan"  value="{$config['yukuan']}">
									<span class="input-group-addon">补款时间</span>
									{php echo view_form_field_date('yukuantime', date('Y-m-d H:i:s',$config['yukuantime']), true);}
									<span class="input-group-addon">分销</span>
									<select class="form-control" name="yukuanfenxiao">
										<option value="0" {if $config['yukuanfenxiao'] == 0 }selected="selected"{/if}>正常分销</option>
										<option value="1" {if $config['yukuanfenxiao'] == 1 }selected="selected"{/if}>全款有分销补款无分销</option>
										<option value="2" {if $config['yukuanfenxiao'] == 2 }selected="selected"{/if}>全款无分销补款有分销</option>
									</select>
									{if $system['is_mystery_boxes']==1 || $system['is_mystery_boxes_feichi']>0}
									<span class="input-group-addon">盲盒</span>
									<select class="form-control" name="mystery_boxes_yukuan">
										<option value="0" {if $config['mystery_boxes_yukuan'] == 0 }selected="selected"{/if}>正常到时间补款</option>
										<option value="1" {if $config['mystery_boxes_yukuan'] == 1 }selected="selected"{/if}>拆了盲盒就可以补</option>
									</select>
									{/if}
								</div>
								<span class="help-block">注：到了补款时间，若客户已付定金，则只补余款，若未付定金则补全款；</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动限购</label>
							<div class="col-sm-10 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">限购</span>
									<input type="text" class="form-control"  placeholder="" name="renshu"  value="{$config['renshu']}">
									<span class="input-group-addon">单位</span>
									<select class="form-control" style="width: 80px;" name="renshudanwei">
										<option value="个" {if $config['renshudanwei'] == "个" }selected="selected"{/if}>个</option>
										<option value="人" {if $config['renshudanwei'] == "人" }selected="selected"{/if}>人</option>
										<option value="套" {if $config['renshudanwei'] == "套" }selected="selected"{/if}>套</option>
										<option value="单" {if $config['renshudanwei'] == "单" }selected="selected"{/if}>单</option>
										<option value="CM" {if $config['renshudanwei'] == "CM" }selected="selected"{/if}>CM</option>
									</select>
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="renshumode">
										<option value="0" {if $config['renshumode'] == 0 }selected="selected"{/if}>达到多少人享受优惠，达到人数还可报名</option>
										<option value="2" {if $config['renshumode'] == 2 }selected="selected"{/if}>达到多少人享受优惠，达到人数活动结束</option>
										<option value="1" {if $config['renshumode'] == 1 }selected="selected"{/if}>限购剩余多少，剩余为0活动结束</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动限购提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="为空为默认值" name="renshutips"  value="{$config['renshutips']}">
								<span class="help-block">限量#renshu个名额，已报名#baoming人</span>
								<span class="help-block">限量#renshu个名额，还剩余#shengyu个名额</span>
								<span class="help-block">已有#baoming孕妈晒出腹围，拼在一起已达#fuwenCM（注：腹围请用【①文本/日期】统计）</span>
							</div>
						</div>
						{/if}
						{/if}
					</div>
					{else}
					<div class="panel-heading">砍价配置中设置价格</div>
					{/if}
				</div>

				<div class="panel panel-default group__show" role="tabpanel" style="">
					<div class="panel-heading">阶梯团设置</div>
					<div class="panel-body" style="">
						<div id="tuan_tips_items">
							{php empty($config['tuan_tips'])?$config['tuan_tips']=array(0,1,2):'';}
							{loop $config['tuan_tips'] $index $row}
							<div class="form-group">
								<label class="col-sm-1 col-xs-12 control-label">团{php echo $index+1;}：</label>
								<div class="col-sm-10 col-xs-12">
									<div class="col-sm-8 col-xs-12">
										<div class="input-group">
											<span class="input-group-addon">成团人数</span>
											<input style="width:20%" type="text" name="tuan_tips_num[]" class="form-control" placeholder="" value="{php echo $row['num']==0?'':$row['num'];}" >
										</div>
										<div class="input-group">
											<span class="input-group-addon">礼品名称</span>
											<input type="text" name="tuan_tips_name[]" class="form-control" placeholder=""  value="{$row['name']}">
										</div>
									</div>
									<div class="col-sm-4 col-xs-12">
										{php echo view_form_field_image('tuan_tips_img[]',$row['img']);}
									</div>
								</div>
							</div>
							{/loop}
						</div>
						<a href="javascript:;" onclick="addTuanItem();" class="btn btn-info col-lg-1"><i class="glyphicon glyphicon-plus" title="添加团"></i>添加团</a>
					</div>

				</div>

				{if $system['is_mother_boxes']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">妈妈宝盒</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>限购模式</label>
							<div class="col-sm-6 col-xs-12">
								<label class="radio-inline">
									<input type="radio" name="mother_boxes_limit" id="inlineRadio1" value="0" {if $config['mother_boxes_limit'] == 0}checked="checked"{/if}> 每日限购*个
								</label>
								<label class="radio-inline">
									<input type="radio" name="mother_boxes_limit" id="inlineRadio2" value="1" {if $config['mother_boxes_limit'] ==1}checked="checked"{/if}> 每周限购*个
								</label>
								<label class="radio-inline">
									<input type="radio" name="mother_boxes_limit" id="inlineRadio2" value="2" {if $config['mother_boxes_limit'] ==2}checked="checked"{/if}> 每月限购*个
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>{if $config['mother_boxes_limit'] == 0}每日{/if}{if $config['mother_boxes_limit'] == 1}每周{/if}{if $config['mother_boxes_limit'] == 2}每月{/if}限购人数</label>
							<div class="col-sm-6 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="mother_boxes_renshu"  value="{$config['mother_boxes_renshu']}">
							</div>
						</div>
						{if $config['mother_boxes_limit'] == 0}
						<div class="form-group">
							<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>每日几点截止</label>
							<div class="col-sm-6 col-xs-12">
								<select class="form-control" name="mother_boxes_endtime">
									<option value="0" {if $config['mother_boxes_endtime'] == 0 }selected="selected"{/if}>不限制</option>
									<option value="1" {if $config['mother_boxes_endtime'] == 1 }selected="selected"{/if}>3小时随机：6:00-9:00</option>
									<option value="2" {if $config['mother_boxes_endtime'] == 2 }selected="selected"{/if}>3小时随机：9:00-12:00</option>
									<option value="3" {if $config['mother_boxes_endtime'] == 3 }selected="selected"{/if}>3小时随机：12:00-15:00</option>
									<option value="4" {if $config['mother_boxes_endtime'] == 4 }selected="selected"{/if}>3小时随机：15:00-18:00</option>
									<option value="5" {if $config['mother_boxes_endtime'] == 5 }selected="selected"{/if}>3小时随机：18:00-21:00</option>
									<option value="6" {if $config['mother_boxes_endtime'] == 6 }selected="selected"{/if}>4小时随机：6:00-10:00</option>
									<option value="7" {if $config['mother_boxes_endtime'] == 7 }selected="selected"{/if}>4小时随机：10:00-14:00</option>
									<option value="8" {if $config['mother_boxes_endtime'] == 8 }selected="selected"{/if}>4小时随机：14:00-18:00（推荐）</option>
									<option value="9" {if $config['mother_boxes_endtime'] == 9 }selected="selected"{/if}>4小时随机：18:00-22:00</option>
								</select>
								<span class="help-block">若在此时间段真实数量已到则正常结束，如果时间到了时间到则虚拟已购买的人数结束；时间段为随机时间</span>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label"><span style="color: red;">*</span>邀请几人</label>
							<div class="col-sm-6 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="mother_boxes_friend"  value="{$config['mother_boxes_friend']}">
								<span class="help-block">客户报名成功后，提示邀请几人，未达到显示空白头像</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">其它设置</label>
							<div class="col-sm-9 col-xs-12">
								<div class="input-group">
									{if $config['mother_boxes_limit'] != 0 || ($config['mother_boxes_endtime'] == 0 && $config['mother_boxes_limit'] == 0) }
									<span class="input-group-addon">{if $config['mother_boxes_limit'] == 0}每日{/if}{if $config['mother_boxes_limit'] == 1}每周{/if}{if $config['mother_boxes_limit'] == 2}每月{/if}虚拟人数</span>
									<input type="text" class="form-control"  placeholder="" name="mother_boxes_xuni"  value="{$config['mother_boxes_xuni']}">
									{/if}
									<span class="input-group-addon">剩余宝盒位置</span>
									<input type="text" class="form-control"  placeholder="" name="mother_boxes_top"  value="{$config['mother_boxes_top']}">
									<span class="input-group-addon">剩余宝盒动画</span>
									<select class="form-control" name="mother_boxes_ani">
										<option value="0" {if $config['mother_boxes_ani'] == 0 }selected="selected"{/if}>开启</option>
										<option value="1" {if $config['mother_boxes_ani'] == 1 }selected="selected"{/if}>关闭</option>
									</select>
									<span class="input-group-addon">今日凸显</span>
									<select class="form-control" name="mother_boxes_today_show">
										<option value="0" {if $config['mother_boxes_today_show'] == 0 }selected="selected"{/if}>开启</option>
										<option value="1" {if $config['mother_boxes_today_show'] == 1 }selected="selected"{/if}>关闭</option>
									</select>
									<span class="input-group-addon">宝妈与孕妈选择</span>
									<select class="form-control" name="mother_boxes_form_select">
										<option value="0" {if $config['mother_boxes_form_select'] == 0 }selected="selected"{/if}>开启</option>
										<option value="1" {if $config['mother_boxes_form_select'] == 1 }selected="selected"{/if}>关闭</option>
									</select>
								</div>
							</div>
						</div>
					</div>
				</div>
				{/if}
				{if $_G['isSuperAdmin']}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">软件标签</div>
					<div class="panel-body" style="">

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">行业</label>
							<div class="col-sm-10 col-xs-12">
								{loop $softtaglist[0] $row}
								<label class="radio-inline">
									<input name="softtag0[]" type="checkbox" value="{$row}"
										   {if (strstr($config['softtag0'] . ",",$row .",")!==false )}
									checked
									{/if}
									> {$row}
								</label>
								{/loop}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">主题</label>
							<div class="col-sm-10 col-xs-12">
								{loop $softtaglist[1] $row}
								<label class="radio-inline">
									<input name="softtag1[]" type="checkbox" value="{$row}"
										   {if (strstr($config['softtag1'] . ",",$row .",")!==false )}
									checked
									{/if}
									> {$row}
								</label>
								{/loop}
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">节日</label>
							<div class="col-sm-10 col-xs-12">
								{loop $softtaglist[2] $row}
								<label class="radio-inline">
									<input name="softtag2[]" type="checkbox" value="{$row}"
										   {if (strstr($config['softtag2'] . ",",$row .",")!==false )}
									checked
									{/if}
									> {$row}
								</label>
								{/loop}
							</div>
						</div>
					</div>
				</div>
				{/if}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">数据统计</div>
					<div class="panel-body" style="">
						{if $system['wxapp']==0 || $system['softmode']!=1 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">H5采集头像+昵称</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="getavatar_h5" value="0" {if $config['getavatar_h5']==0} checked="checked"{/if} type="radio"> 默认
								</label>
								<label class="radio-inline">
									<input name="getavatar_h5" value="1" {if $config['getavatar_h5']==1} checked="checked"{/if} type="radio"> 底部报名按扭获取
								</label>
								<label class="radio-inline">
									<input name="getavatar_h5" value="2" {if $config['getavatar_h5']==2} checked="checked"{/if} type="radio"> 底部弹窗【进入活动】
								</label>
								<label class="radio-inline">
									<input name="getavatar_h5" value="3" {if $config['getavatar_h5']==3} checked="checked"{/if} type="radio"> 底部弹窗【一键登录】
								</label>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">显示头像模式</label>
							<div class="col-sm-8 col-xs-12">
								<label class="radio-inline">
									<input name="touxiang" value="0" {if $config['touxiang']==0} checked="checked"{/if} type="radio"> 打开的客户
								</label>
								<label class="radio-inline">
									<input name="touxiang" value="1" {if $config['touxiang']==1} checked="checked"{/if} type="radio"> 填写姓名电话的
								</label>
								<label class="radio-inline">
									<input name="touxiang" value="3" {if $config['touxiang']==3} checked="checked"{/if} type="radio"> 支付的客户（显示昵称）
								</label>
								<label class="radio-inline">
									<input name="touxiang" value="2" {if $config['touxiang']==2} checked="checked"{/if} type="radio"> 支付的客户（显示姓名：推荐）
								</label>
								<span class="help-block">报名人数=真实人数(打开的客户/报名/已支付三选一)+虚拟人数</span>
								<span class="help-block">头像下方客户名字:打开客户为微信昵称,其它2个为真实姓名</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">{php echo $system['ruanjian']==5?'虚拟砍价成功':'虚拟报名人数';}</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="fakejoin"  value="{$config['fakejoin']}">
									<span class="input-group-addon">人</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">虚拟参与人数</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="faketuan"  value="{$config['faketuan']}">
									<span class="input-group-addon">人</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">虚拟浏览</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="fakescan"  value="{$config['fakescan']}">
									<span class="input-group-addon">次</span>
								</div>
							</div>
						</div>
						{if $system['fenxiao07'] == '1'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">虚拟摇一摇</label>
							<div class="col-sm-6 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">虚拟人数</span>
									<input class="form-control" placeholder="例如:20" name="comm7num" value="{$config['comm7num']}" type="text">
									<span class="input-group-addon">虚拟钱数</span>
									<input class="form-control" placeholder="例如:100" name="comm7fee" value="{$config['comm7fee']}" type="text">
								</div>
								<span class="help-block" >摇一摇红包的虚拟数</span>
							</div>
						</div>
						{/if}

						{if $system['islottery']==1}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">已中奖人数虚拟</label>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="fakelottery"  value="{$config['fakelottery']}">
									<span class="input-group-addon">人</span>
								</div>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">附近的团</label>
							<div class="col-sm-8 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isrecent" value="0" {if $config['isrecent']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="isrecent" value="1" {if $config['isrecent']==1} checked="checked"{/if} type="radio"> 开启：按报名顺序显示
								</label>
								<label class="radio-inline">
									<input name="isrecent" value="2" {if $config['isrecent']==2} checked="checked"{/if} type="radio"> 开启：随机显示
								</label>
								<label class="radio-inline">
									<input name="isrecent" value="3" {if $config['isrecent']==3} checked="checked"{/if} type="radio"> 开启：当前团显示在第一其它按团人数排序
								</label>
							</div>
						</div>
						{if $system['ruanjian']==2}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">快速搜索团</label>
							<div class="col-sm-4 col-md-4 col-lg-4 col-xs-12">
								<label class="radio-inline">
									<input name="issearch" value="0" {if $config['issearch']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="issearch" value="1" {if $config['issearch']==1} checked="checked"{/if} type="radio"> 开启
								</label>
							</div>
						</div>
						{/if}
						{if $_G['isSuperAdmin']}
						<!-- 				    <div class="form-group">
	                    <label class="col-sm-2 col-xs-12 control-label">结账日期</label>
	                    <div class="col-sm-6 col-xs-12">
	                        <input type="text" class="form-control"  placeholder="" name="jiezhang"  value="{$theme['jiezhang']}">
	                        <span class="help-block">结账后前段会显示水印,后台无法退款,结账{php echo date('Y-m-d');}</span>
	                    </div>
	                </div>  -->
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">最多可退款单数</label>
							<div class="col-sm-6 col-xs-12">
								<div class="input-group">
<!--									<span class="input-group-addon">充值</span>-->
<!--									<input type="text" class="form-control"  placeholder="" name="chongzhi"  value="{php echo $theme['chongzhi']<0?0:$theme['chongzhi'];}">-->
<!--									<span class="input-group-addon">提现</span>-->
<!--									<input type="text" class="form-control"  placeholder="" name="tixian"  value="{php echo $theme['chongzhi']>0?0:-$theme['chongzhi'];}">-->
									<span class="input-group-addon">最多可退款单数</span>
									<input type="text" class="form-control"  placeholder="" name="refundfee"  value="{$theme['refundfee']}">
								</div>
							</div>
						</div>
						{/if}
					</div>
				</div>

			</div>
			<div class="tab-pane " id="imgset">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">图文内容
						{if $isold==true && !$_G['isSuperAdmin']}
						{php $sold_tips='已禁用，如需修改请联系工作人员';}
						{elseif $config['isdesign']==1}
						{php $sold_tips='已禁用，如需修改请点击上方【在线图文编辑】';}
						{else}
						{php $sold_tips='';}
						{/if}
						{if !empty($sold_tips)}<span style="color: #6db4d6"> {$sold_tips}</span>{/if}
					</div>
					<div class="panel-body" style="">
						<input type="hidden" name="isdesign" value="{$config['isdesign']}" />
						{if $config['isdesign']==1 && !($isold==true && !$_G['isSuperAdmin'])}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">在线编辑</label>
							<div class="col-sm-8 col-xs-12">
								{if $_G['isSuperAdmin']}
								<a href="{php echo createWebUrl('theme',array('op'=>'close_design','themeid'=>$themeid));}" onclick="if(!confirm('确认关闭在线编辑吗，不可恢复')) return false;" class="btn btn-default">关闭在线编辑</a>
								{/if}
								<a href="{php echo createWebUrl('theme',array('op'=>'go_design','ac'=>'edit','themeid'=>$themeid));}" class="btn btn-info">在线图文编辑</a>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>Banner轮播</label>
							<div class="col-sm-8 col-xs-12">
								{if !empty($sold_tips)}
								{php echo view_form_field_multi_image('bannerimgs',$config['bannerimgs'],[],$sold_tips);}
								{else}
								{php echo view_form_field_multi_image('bannerimgs',$config['bannerimgs']);}
								{/if}
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}第一张为活动主图，且为默认的分享图，只有一张时不进行轮播</span>
								{if $isposter}
								<span class="help-block" style="color:red">此活动开启了首图海报，打开员工的链接，将替换活动页面的首图，改为带有员工的二维码的海报图,若为轮播将在最后加入此海报</span>
								{/if}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">Banner视频</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_video('bannervideo',$config['bannervideo']);}
								<span class="help-block">{if ($isold==true && !$_G['isSuperAdmin'])}已禁用，{/if}精简视频，控制在90秒内为最佳，图文内容还可以放其它视频</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">顶部图片组</label>
							<div class="col-sm-8 col-xs-12">
								{if !empty($sold_tips)}
								{php echo view_form_field_multi_image('centerimgs',$config['centerimgs'],[],$sold_tips);}
								{else}
								{php echo view_form_field_multi_image('centerimgs',$config['centerimgs']);}
								{/if}
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}在头像下方显示;启用点亮星星时,在其上方</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">裂变图片</label>
							<div class="col-sm-8 col-xs-12">
								{if !empty($sold_tips)}
								{php echo view_form_field_multi_image('imgs',$config['imgs'],[],$sold_tips);}
								{else}
								{php echo view_form_field_multi_image('imgs',$config['imgs']);}
								{/if}
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}启用点亮星星时,在其中间显示的图片内容,不启用不显示</span>
								<span class="help-block">启用摇一摇红包时,在红包图片下方显示,不启用不显示</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*{if !empty($sold_tips)}已禁用{/if}</span>活动内容</label>
							<div class="col-sm-8 col-xs-12">

								{php echo view_ueditor('content', $config['content']);}
								<script>
									function editor_cbw(e,d) {
										d.ready(function (ddd) {
											let that = this;
											$(this.document).on("paste",function (ddd) {
												console.log(ddd);
											});
										});
									}
								</script>
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}活动的正文,可放文字/图片/视频</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部二维码</label>
							{if $system['softmode']!=1 || $system['wxapp']==0}
							<div class="col-sm-4 col-xs-12">
								{if !empty($sold_tips)}
								{php echo view_form_field_image_sold('addimg',$theme['addimg'],'',[],$sold_tips);}
								{else}
								{php echo view_form_field_image('addimg',$theme['addimg']);}
								{/if}
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}H5：长按图片识别二维码 关注官方客服微信</span>
							</div>
							{/if}
							{if $system['wxapp']!=0 && $system['softmode']!=0}
							<div class="col-sm-3 col-xs-12">
								{if !empty($sold_tips)}
								{php echo view_form_field_image_sold('addimgxcx',$theme['addimgxcx'],'',[],$sold_tips);}
								{else}
								{php echo view_form_field_image('addimgxcx',$theme['addimgxcx']);}
								{/if}
								<span class="help-block">{if !empty($sold_tips)}已禁用,{/if}小程序：截图保存二维码，打开微信扫一扫，关注官方客服微信</span>
							</div>
							{/if}
							<div class="col-sm-2 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="private_kfewm">
										<option value="0" {if $config['private_kfewm'] != 1 }selected="selected"{/if}>正常</option>
										<option value="1" {if $config['private_kfewm'] == 1 }selected="selected"{/if}>员工二维码显示在底部</option>
									</select>
								</div>
							</div>
						</div>

						{if $system['wxapp']!=0 && $system['softmode']!=0}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">店铺导航坐标</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="mappoint"  value="{$config['mappoint']}">
								<span class="help-block">此值为空不显示导航 如：36.074077,120.395737<a style="color: #ff0000" href="https://lbs.qq.com/tool/getpoint/index.html" target="_blank">点击打开坐标拾取器</a>，搜索地址后，复制当前坐标</span>
							</div>
						</div>
						{/if}

						{if $system['video_button']!=1}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">视频底图</label>
							<div class="col-sm-6 col-xs-12">
								{php echo view_form_field_multi_image('videoimgs',$config['videoimgs']);}
								<span class="help-block">若链接中有视频这里必上传，否则播放视频时，背景音乐不会暂停；多个视频需要上传对应数量的底图,底图尺寸：985*615px</span>
							</div>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">播放模式</span>
									<select class="form-control" name="video_show_mode">
										<option value="0" {if $config['video_show_mode'] != 1 }selected="selected"{/if}>全屏播放</option>
										<option value="1" {if $config['video_show_mode'] == 1 }selected="selected"{/if}>正常</option>
									</select>
								</div>
							</div>
						</div>
						{else}
						{loop array(0,1,2,3,4,5,6) $row}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">视频底图{php echo $row+1;}：</label>
							<div class="col-sm-10 col-xs-12">
								<div class="col-sm-6 col-xs-12">
									{php echo view_form_field_image('videoimgs[]',$config['videoimgs'][$row]);}
								</div>
								<div class="col-sm-4 col-xs-12">
									<div class="input-group">
										<span class="input-group-addon">距离左边</span>
										<input type="text" name="video_show_left[]" class="form-control" placeholder="" value="{php echo empty($config['video_show_left'][$row])?'50':$config['video_show_left'][$row];}" >
										<span class="input-group-addon">%</span>
									</div>
								</div>
							</div>
						</div>
						{/loop}
						{/if}

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">客服二维码</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('kfewm',$config['kfewm']);}
								<span class="help-block">员工二维码未上传时，显示此二维码。</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">背景音乐</label>
							<div class="col-sm-3 col-xs-12">
								<select class="form-control" id="musictype" name="musictype" onchange="changemusic();">
									<option value="">请选择音乐分类</option>
								</select>
							</div>
							<div class="col-sm-3 col-xs-12">
								<select class="form-control" id = "musicname" name="musicname" onchange="changemusicname();" >
									<option value="">请选择音乐</option>
								</select>
							</div>
							<div class="col-sm-3 col-xs-12">
								<select class="form-control selectpicker" id="selectMusic" data-live-search="true">
									<option value="">请搜索音乐</option>
								</select>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">

								{php echo view_form_field_audio('musicsrc',$config['musicsrc']);}

								<span class="help-block">mp3文件 不要太大 影响页面加载 用格式工厂压缩一下,控制在1M内</span>
							</div>
							{if $_G['isSuperAdmin']}
							<div class="col-sm-2 col-xs-12">
								<button type="button" class="btn btn-default" id="addTts">语音合成</button>
							</div>
							{/if}
						</div>

					</div>
				</div>
				{if $config['private_kfewm']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">底部专属客服二维码设置</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">背景图</label>
							<div class="col-sm-3 col-xs-12">
								{php echo view_form_field_image('private_kfewm_bg_img',$config['private_kfewm_bg_img']);}
								<span class="help-block">客服专属二维码背景图；设置背景图后背景色无效</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">背景色</label>
							<div class="col-sm-8 col-xs-12">
								<div class="col-sm-8 col-xs-12">
									{php echo view_form_field_color('private_kfewm_bg_color',$config['private_kfewm_bg_color']);}
									<span class="help-block">未设置背景图，设置背景色生效;默认白色</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">二维码上方提示语</label>
							<div class="col-sm-8 col-xs-12">
								<div class="col-sm-5 col-xs-12">
									<input type="text" name="private_kfewm_title" class="form-control" placeholder="" value="{php echo empty($config['private_kfewm_title'])?'请长按图片识别，添加专属客服二维码':$config['private_kfewm_title'];}" >
									<span class="help-block">二维码上方提示语，仅在设置背景色生效。默认：请长按图片识别，添加专属客服二维码</span>
								</div>
								<div class="col-sm-3 col-xs-12">
									<input type="text" name="private_kfewm_fontsize" class="form-control" placeholder="" value="{php echo empty($config['private_kfewm_fontsize'])?'18':$config['private_kfewm_fontsize'];}" >
									<span class="help-block">字体大小，默认18</span>
								</div>
								<div class="col-sm-3 col-xs-12">
									<input type="text" name="private_kfewm_line_height" class="form-control" placeholder="" value="{php echo empty($config['private_kfewm_line_height'])?'30':$config['private_kfewm_line_height'];}" >
									<span class="help-block">行高，默认30</span>
								</div>
								<div class="col-sm-8 col-xs-12">
									{php echo view_form_field_color('private_kfewm_title_color',$config['private_kfewm_title_color']);}
									<span class="help-block">字体颜色;默认黑色</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">二维码边距</label>
							<div class="col-sm-3 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">距离顶部</span>
									<input type="text" name="private_kfewm_top" class="form-control" placeholder="" value="{php echo empty($config['private_kfewm_top'])?'50':$config['private_kfewm_top'];}" >
									<span class="input-group-addon">%</span>
								</div>
								<div class="input-group">
									<span class="input-group-addon">距离左侧</span>
									<input type="text" name="private_kfewm_left" class="form-control" placeholder="" value="{php echo empty($config['private_kfewm_left'])?'50':$config['private_kfewm_left'];}" >
									<span class="input-group-addon">%</span>
								</div>
								<span class="help-block">默认50%</span>
							</div>
						</div>
					</div>
				</div>
				{/if}

				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">交易凭证信息{if $isold==true && !$_G['isSuperAdmin']}(已禁用,如需修改请联系工作人员){/if}</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>主办方</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="jubf" readonly value="{$theme['jubf']}">
								<span class="help-block">不可更改,如需更改需联系工作人员</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">主办方LOGO</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('pinpailogo',$config['pinpailogo']);}
								<span class="help-block">尺寸要求128*128,为空时为显示我司LOGO</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>客服电话</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control" placeholder="" name="mobile" id="test_mobile" οnblur="test_mobile()" value="{$theme['mobile']}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">地址</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">{$config['province']}</span>
									<span class="input-group-addon">{$config['city']}</span>
									<span class="input-group-addon">{$config['district']}</span>
									<input type="text" class="form-control"  placeholder="" name="addresstxt"  value="{$config['addresstxt']}">
								</div>
								<span class="help-block">地区不可更改,如需更改需联系工作人员</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">时间文字描述</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="zhuandantxt"  value="{$config['zhuandantxt']}">
								<span class="help-block" >如：转单时间 选套系时间 感恩回馈日，为空时不显示</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">转单时间</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_daterange('zhuandantime', array('start'=>date('Y-m-d H:i:s',$config['zhuandanbegintime']),'end'=>date('Y-m-d H:i:s',$config['zhuandanendtime'])), false);}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">活动说明</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="zhuandantips"  value="{$config['zhuandantips']}">
								<span class="help-block" >如：定金不退不换 不可与其它活动重叠使用，建议不要用最终解释权归*所有，属霸王条款</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹窗说明</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('zhuandanimg',$config['zhuandanimg']);}
								<span class="help-block">客户付完款后在交易凭证上，弹窗显示，尺寸：1080*1701</span>
							</div>
						</div>
					</div>
				</div>

				{if $system['qrlist']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">二维码管理</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>说明1</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="qrlistname1"  value="{if empty($config['qrlistname1'])}在线制作相册{else}{$config['qrlistname1']}{/if}">
								<span class="help-block" >如：在线制作相册 进入直播群</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>说明2</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="qrlistname2"  value="{if empty($config['qrlistname2'])}识别二维码在线制作相册{else}{$config['qrlistname2']}{/if}">
								<span class="help-block" >如：识别二维码在线制作相册</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">二维码图片组</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_multi_image('qrlistimgs',$config['qrlistimgs']);}
								<span class="help-block">客户下单后在头像下方显示，下方紧跟二维码</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">发放模式</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="qrlistmode" value="0" {if $config['qrlistmode']==0} checked="checked"{/if} type="radio"> 付款发放
								</label>
								<label class="radio-inline">
									<input name="qrlistmode" value="1" {if $config['qrlistmode']==1} checked="checked"{/if} type="radio"> 拼团成功发放
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">自动补发</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="qrlistbufa" value="0" {if $config['qrlistbufa']==0} checked="checked"{/if} type="radio"> 开启
								</label>
								<label class="radio-inline">
									<input name="qrlistbufa" value="1" {if $config['qrlistbufa']==1} checked="checked"{/if} type="radio"> 关闭
								</label>
								<span class="help-block">当二维码发完时，系统自动停发，当系统有新增的二维码时，付款的客户打开链接即可补发</span>
							</div>
						</div>
					</div>
				</div>
				{/if}
			</div>
			{if $system['ispresale']==1}
			{include file='theme_presale'}
			{include file='theme_presale_share'}
			{/if}
			{if ($config['koi_lottery_main']!=1 && $system['ruanjian']!= 5 && $system['ruanjian']!= 10) && ($system['isdianliang']==1 || $config['isicon']>0) }
			<div class="tab-pane " id="dianliangset">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">点亮信息</div>
					<div class="panel-body" style="">

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">点亮模式</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isicon" value="0" {if $config['isicon']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="isicon" value="1" {if $config['isicon']==1} checked="checked"{/if} type="radio"> 转发朋友圈点亮
								</label>
								<label class="radio-inline">
									<input name="isicon" value="2" {if $config['isicon']==2} checked="checked"{/if} type="radio"> 朋友阅读点亮
								</label>
								{if $system['ruanjian']!='0' && $system['bottom_jiage'] == '0' && ($system['is_new_wxapp']==1 || $system['softmode']!=1)}
								<label class="radio-inline">
									<input name="isicon" value="3" {if $config['isicon']==3} checked="checked"{/if} type="radio">邀请好友点亮
								</label>
								{/if}
								<span class="help-block">转发朋友圈点亮:转发朋友圈亮一颗,每天只能点亮一颗</span>
								<span class="help-block">朋友阅读点亮:分享到朋友圈或好友,新客户打开记一个阅读,根据设置的阅读点亮比例值,计算点亮的星星数
						 例如:A转发后,有16个好友打开看过,设置的阅读点亮比例值为5,则此时点亮为3颗,如果设置的阅读点亮比例值为1,则此时点亮为16颗</span>
								<span class="help-block">邀请好友点亮:仅支持拼团2020且1个价格，小程序仅新版小程序支持</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">收集资料</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iconziliao" value="0" {if $config['iconziliao']!=1 && $config['iconziliao']!=2} checked="checked"{/if} type="radio"> 收集
								</label>
								<label class="radio-inline">
									<input name="iconziliao" value="1" {if $config['iconziliao']==1} checked="checked"{/if} type="radio"> 不收集
								</label>
								{if $system['ruanjian'] == '2' && $system['softmode']!=1}
								<label class="radio-inline">
									<input name="iconziliao" value="2" {if $config['iconziliao']==2} checked="checked"{/if} type="radio"> 强制收集(仅支持拼团2020)
								</label>
								{/if}
								<span class="help-block">未报名的客户，转发点亮时提示输入信息，强制收集帮点亮或转发点亮不留下信息不亮</span>

							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">点亮图标</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_image('darkicon',$config['darkicon']);}
								<span class="help-block">未点亮：尺寸:200*200px</span>
								<span class="help-block">如需每个图标不一样，请开异业模式；</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_image('lighticon',$config['lighticon']);}
								<span class="help-block">点亮图：尺寸:200*200px</span>
							</div>
						</div>
						{if $system['is_multiple_merchants']}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">图标LOGO</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iconlogo" value="0" {if $config['iconlogo']!=1} checked="checked"{/if} type="radio"> 默认
								</label>
								<label class="radio-inline">
									<input name="iconlogo" value="1" {if $config['iconlogo']==1} checked="checked"{/if} type="radio"> 商家logo
								</label>
							</div>
						</div>
						{/if}


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">图标个数</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconnum"  value="{$config['iconnum']}">
								<span class="help-block">图标的个数代表转发朋友圈次数（一天内的分享算一次，点亮一个图标）</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">报名获得图标数</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconnum_baoming"  value="{$config['iconnum_baoming']}">
								<span class="help-block">客户报名即点亮多少颗图标</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">一行几个星星</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iconhang" value="0" {if $config['iconhang']==0} checked="checked"{/if} type="radio"> 自动
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="28" {if $config['iconhang']==28} checked="checked"{/if} type="radio"> 3
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="21" {if $config['iconhang']==21} checked="checked"{/if} type="radio"> 4
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="16" {if $config['iconhang']==16} checked="checked"{/if} type="radio"> 5
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="13" {if $config['iconhang']==13} checked="checked"{/if} type="radio"> 6
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="11" {if $config['iconhang']==11} checked="checked"{/if} type="radio"> 7
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="9" {if $config['iconhang']==9} checked="checked"{/if} type="radio"> 8
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="7" {if $config['iconhang']==7} checked="checked"{/if} type="radio"> 9
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="6" {if $config['iconhang']==6} checked="checked"{/if} type="radio"> 10
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="5" {if $config['iconhang']==5} checked="checked"{/if} type="radio"> 12
								</label>
								<label class="radio-inline">
									<input name="iconhang" value="3" {if $config['iconhang']==3} checked="checked"{/if} type="radio"> 15
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">点亮背景颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('starbgcolor',$config['starbgcolor']);}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">点亮按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('starbtcolor',$config['starbtcolor']);}
								<span class="help-block">按扭颜色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('startextcolor',$config['startextcolor']);}
								<span class="help-block">按扭文字颜色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">点亮按扭文字</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconname"  value="{$config['iconname']}">
								<span class="help-block">点亮按扭文字，例如：立即点亮小星星</span>
							</div>
						</div>

						{if $config['isicon']==1}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">转发点亮_每天可以点亮几颗</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="todayicon"  value="{if empty($config['todayicon'])}1{else}{$config['todayicon']}{/if}">
							</div>
						</div>
						{elseif $config['isicon']==2}


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">阅读点亮_比例值</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconnum2"  value="{$config['iconnum2']}">
								<span class="help-block" >
							【点亮一颗图标需要N个人阅读就填N】
							A分享出去，假如有10个不同的人看过，此处如果填3，那么点亮3颗，整除；
							李四看过之后，张三的阅读值+1，李四作为张三的阅读者，则无法给其他人作为阅读者
								</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">阅读点亮_每日限制</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconlimit"  value="{$config['iconlimit']}">
								<span class="help-block">0为不限制，若设置1 则表示24小时内阅读次数最多为1，多了无效;小程序用户限制时每日限制没有那么准确，总数是准的。</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">阅读点亮_小程序用户限制</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iconlimituser" value="0" {if $config['iconlimituser']==0} checked="checked"{/if} type="radio"> 所有
								</label>
								<label class="radio-inline">
									<input name="iconlimituser" value="1" {if $config['iconlimituser']==1} checked="checked"{/if} type="radio"> 授权头像
								</label>
								<label class="radio-inline">
									<input name="iconlimituser" value="2" {if $config['iconlimituser']==2} checked="checked"{/if} type="radio"> 授权电话
								</label>
								<label class="radio-inline">
									<input name="iconlimituser" value="3" {if $config['iconlimituser']==3} checked="checked"{/if} type="radio"> 授权头像+电话
								</label>
							</div>
						</div>

						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">分享提示图片</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('sharetip',$config['sharetip']);}
								<span class="help-block">尺寸大小:330*228</span>
								<span class="help-block">分享提示图片，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载模版</a></span>
							</div>
						</div>


					</div>
				</div>
				{if $config['isicon']==3}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">邀请好友点亮配置</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部报名按扭</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="friend_join"  value="{if empty($config['friend_join'])}我也参于{else}{$config['friend_join']}{/if}">
								<span class="help-block">例如：我也参于 我也报名</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部帮TA点亮</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="iconname_menu"  value="{if empty($config['iconname_menu'])}帮TA点亮{else}{$config['iconname_menu']}{/if}">
								<span class="help-block"> 例如：立即点亮小星星 转发点亮</span>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-sm-2 col-xs-12 control-label">点亮成功</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="friend_success"  value="{if empty($config['friend_success'])}已帮TA点亮{else}{$config['friend_success']}{/if}">
								<span class="help-block">如：给好友助力成功 已送TA星星;邀请好友点亮模式生效</span>
							</div>
						</div>
						<div class="form-group" >
							<label class="col-sm-2 col-xs-12 control-label">动作</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="friend_name"  value="{if empty($config['friend_name'])}点亮{else}{$config['friend_name']}{/if}">
								<span class="help-block">如：助力 点赞 送星星 送玫瑰</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">客户要求</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="friendorder" value="0" {if $config['friendorder']!=1} checked="checked"{/if} type="radio"> 已报名客户
								</label>
								<label class="radio-inline">
									<input name="friendorder" value="1" {if $config['friendorder']==1} checked="checked"{/if} type="radio"> 未报名+已报名
								</label>
								<span class="help-block">客户报名后才可以邀请别人点亮,还是未报名也可以邀请点亮</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">成功点亮提示</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('friendsuccesstip',$config['friendsuccesstip']);}
								<span class="help-block">尺寸大小:1080*1701</span>
								<span class="help-block">邀请提示，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载H5模版</a><a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiaoxcx.psd" target="_blank">点击下载小程序模版</a></span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">成功点亮提示</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="friendsuccessid" value="0" {if $config['friendsuccessid']==0} checked="checked"{/if} type="radio"> 开启:唯一凭证
								</label>
								<label class="radio-inline">
									<input name="friendsuccessid" value="1" {if $config['friendsuccessid']==1} checked="checked"{/if} type="radio"> 关闭:唯一凭证
								</label>
							</div>
						</div>
<!--						<div class="form-group">-->
<!--							<label class="col-sm-2 col-xs-12 control-label">邀请提示</label>-->
<!--							<div class="col-sm-8 col-xs-12">-->
<!--								{php echo view_form_field_image('gifttip',$config['gifttip']);}-->
<!--								<span class="help-block">尺寸大小:330*228</span>-->
<!--								<span class="help-block">邀请提示，透明背景，尽量不出现分享字眼 <a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiao.psd" target="_blank">点击下载H5模版</a><a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/fenxiaoxcx.psd" target="_blank">点击下载小程序模版</a></span>-->
<!--							</div>-->
<!--						</div>-->
<!--						<div class="form-group">-->
<!--							<label class="col-sm-2 col-xs-12 control-label">赠送奖品</label>-->
<!--							<div class="col-sm-8 col-xs-12">-->
<!--								<input type="text" class="form-control"  placeholder="" name="icongift"  value="{$config['icongift']}">-->
<!--								<span class="help-block">点亮全部图标赠送的奖品名称信息，例如：点亮图标赠送跳舞机器人</span>-->
<!--							</div>-->
<!--						</div>-->
<!--						<div class="form-group" style="display: none;">-->
<!--							<label class="col-sm-2 col-xs-12 control-label">奖品库存</label>-->
<!--							<div class="col-sm-8 col-xs-12">-->
<!--								<input type="text" class="form-control"  placeholder="" name="icongiftsum"  value="{$config['icongiftsum']}">-->
<!--								<span class="help-block">点亮全部图标赠送的奖品库存总数</span>-->
<!--							</div>-->
<!--						</div>-->
<!--						<div class="form-group">-->
<!--							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>限制城市</label>-->
<!--							<div class="col-sm-8 col-xs-12">-->
<!--								<input type="text" class="form-control"  placeholder="" name="limitcity"  value="{$config['limitcity']}">-->
<!--								<span class="help-block" >地级市，填全称，例如 北京市，只填北京即可，不填表示不限制，不满足城市的点亮模块自动不显示 谨防被举报</span>-->
<!--							</div>-->
<!--						</div>-->
<!--						<div class="form-group">-->
<!--							<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>跳转URL</label>-->
<!--							<div class="col-sm-8 col-xs-12">-->
<!--								<input type="text" class="form-control"  placeholder="" name="url"  value="{$config['url']}">-->
<!--								<span class="help-block" >配合限制城市，不满足条件的跳转URL,不填不跳转，大部分信息会自动隐藏</span>-->
<!--							</div>-->
<!--						</div>-->
					</div>
				</div>
				{/if}
			</div>
			{/if}
			{if $system['is_mystery_boxes']>0 || $system['is_mystery_boxes_feichi']>0}
			{include file='theme_mystery_boxes'}
			{/if}
			{if $system['ruanjian']==0 && $system['softstyle']==5}
			{include file='theme_jiameng'}
			{elseif $system['ruanjian']==1 || $system['softstyle']==104}
			<div class="tab-pane" id="wenziset">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">底部按扭文字</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">免费报名按扭文字</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="wtformtextleft"  value="{if empty($config['wtformtextleft'])}立即免费在线报名{else}{$config['wtformtextleft']}{/if}">
								<span class="help-block">如:立即免费在线报名</span>
								<span class="help-block">以下几个按扭文字支持通配符:#br带表换行 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="wtformtextpay"  value="{if empty($config['wtformtextpay'])}立即支付#fee元抢购{else}{$config['wtformtextpay']}{/if}">
								<span class="help-block">如:立即支付#fee元抢购</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">报名成功提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  name="wtlablesuccess"  value="{if empty($config['wtlablesuccess'])}恭喜您抢购成功{else}{$config['wtlablesuccess']}{/if}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部按扭样式</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="wtisshowmenu" value="0" {if $config['wtisshowmenu']==0} checked="checked"{/if} type="radio"> 默认传统
								</label>
								<label class="radio-inline">
									<input name="wtisshowmenu" value="1" {if $config['wtisshowmenu']==1} checked="checked"{/if} type="radio"> 已报名*人
								</label>
								<span class="help-block">不显示时,可以在按扭文字设置价格,比如:支付29.9元开团</span>
							</div>
						</div>
					</div>
				</div>
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">底部按扭颜色</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部按扭配色</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="buttontyle" value="0" {if $config['buttontyle']==0} checked="checked"{/if} type="radio"> 自定义
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="1" {if $config['buttontyle']==1} checked="checked"{/if} type="radio"> 经典蓝
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="2" {if $config['buttontyle']==2} checked="checked"{/if} type="radio"> 拼多多红
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="3" {if $config['buttontyle']==3} checked="checked"{/if} type="radio"> 京东红
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">左侧按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
								<span class="help-block">左侧按扭与表单浅色部分的背景色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
								<span class="help-block">左侧按扭文字颜色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">右侧按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
								<span class="help-block">右侧按扭与表单深色部分的背景色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
								<span class="help-block">右侧按扭文字颜色</span>
							</div>
						</div>
					</div>
					<div class="panel-footer">弹出的提示窗口颜色与右侧按扭颜色一致</div>
				</div>
			</div>
			{else}

			<div class="tab-pane" id="wenziset">
				{if ($system['softmenu']==1 ||  $system['softmenu']==3 ||  $system['menu_mystery_boxes']==1) && empty($system['bottom_jiage']) }
				{include file='theme_menu_mystery_boxes'}
				{else}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">底部按扭文字</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">原价购买文字</label>
							<div class="col-sm-6 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="formtextleft"  value="{if empty($config['formtextleft'])}￥#dan#br原价购买{else}{$config['formtextleft']}{/if}">
								<span class="help-block">如:原价购买 全款购买 老会员专享 注：类似单独购买是不可以用的</span>
								<span class="help-block">以下按扭文字通配符:#br带表换行 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
							</div>
							<div class="col-sm-2 col-xs-12">
								<label class="radio-inline"><input name="formtextleftopen" type="checkbox" value="1" {php echo $config['formtextleftopen']==1?'checked':'';}>H5关闭此按扭 </label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">没有团报名按扭</label>
							<div class="col-sm-8 col-xs-12">

								<div class="input-group">
									<span class="input-group-addon">{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}拼团①{else}发起拼团{/if}：</span>
									<input class="form-control" placeholder="默认为:立即报名" name="formtextcenter" value="{if empty($config['formtextcenter'])}￥#fee#br立即报名{else}{$config['formtextcenter']}{/if}" type="text">
									{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
									<span class="input-group-addon">拼团②</span>
									<input class="form-control" placeholder="设置拼团价②此处生效" name="formtextcenter2" value="{if empty($config['formtextcenter2'])}￥#tuan#br5人团{else}{$config['formtextcenter2']}{/if}" type="text">
									{/if}
									{if $system['bottom_jiage'] == '2'}
									<span class="input-group-addon">拼团③</span>
									<input class="form-control" placeholder="设置拼团价③此处生效" name="formtextcenter3" value="{if empty($config['formtextcenter3'])}￥#tuan#br5人团{else}{$config['formtextcenter3']}{/if}" type="text">
									{/if}
								</div>
								<span class="help-block">如:立即报名 立即抢购 我要参团  如:￥#fee#br立即报名 如:3人团#br我要参团</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">有组团报名按扭</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">新开团：</span>
									<input class="form-control" placeholder="默认为:我要开团" name="formtextcenternew" value="{if empty($config['formtextcenternew'])}￥#fee#br我要开团{else}{$config['formtextcenternew']}{/if}" type="text">
									<span class="input-group-addon">加入团：</span>
									<input class="form-control" placeholder="默认为:加入TA的团" name="formtextright" value="{if empty($config['formtextright'])}￥#fee#br加入TA的团{else}{$config['formtextright']}{/if}" type="text">
								</div>
								<span class="help-block">如:加入TA的团  如:￥#fee#br加入TA的团 如:3人团#br加入TA的团</span>
								<span class="help-block">客户报名后分享给好友,好友打开会出现这2个按扭,一个是我要开团一个是加入TA的团</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">按扭显示价格</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isshowprice" value="0" {if $config['isshowprice']==0} checked="checked"{/if} type="radio"> 不显示
								</label>
								<label class="radio-inline">
									<input name="isshowprice" value="1" {if $config['isshowprice']==1} checked="checked"{/if} type="radio"> 单买显示其它不显示
								</label>
								<label class="radio-inline">
									<input name="isshowprice" value="2" {if $config['isshowprice']==2} checked="checked"{/if} type="radio"> 显示
								</label>
								<span class="help-block">不显示时,可以在按扭文字设置价格,比如:支付29.9元开团</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">加入团模式</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="new_group_type" value="0" {if $config['new_group_type']==0} checked="checked"{/if} type="radio"> 正常模式（我要开团，加入TA的团）
								</label>
								<label class="radio-inline">
									<input name="new_group_type" value="1" {if $config['new_group_type']==1} checked="checked"{/if} type="radio"> 一键拼团，团满后显示我要开团
								</label>
								<span class="help-block">限拼团2020版</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">支付按扭文字</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="formtextpay"  value="{if empty($config['formtextpay'])}点击支付报名费#fee元{else}{$config['formtextpay']}{/if}">
								<span class="help-block">只有设置定金才生效，如:点击支付报名费#fee元</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部按扭上方提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="为空为默认值" name="buttontips"  value="{$config['buttontips']}">
								<span class="help-block">如:拼团2000人仅需499元,已有#totalsum人团</span>
								<span class="help-block">通配符:#totalsum报名人数,#groupsnum团数,#scansum浏览人数</span>
							</div>
						</div>


						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">组团邀请好友</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:邀请好友参加" name="lableleadergs"  value="{if empty($config['lableleadergs'])}邀请好友参加{else}{$config['lableleadergs']}{/if}">
								<span class="help-block">组团付款后底部按扭邀请好友的提示信息，如:邀请好友参加</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">单买邀请好友</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:邀请好友参加" name="lablegspy"  value="{if empty($config['lablegspy'])}邀请好友参加{else}{$config['lablegspy']}{/if}">
								<span class="help-block">单独购买付款后底部按扭邀请好友的提示信息，如:邀请好友参加</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">组团成功</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:恭喜您组团成功" name="lablesuccess"  value="{if empty($config['lablesuccess'])}恭喜您组团成功{else}{$config['lablesuccess']}{/if}">
								<span class="help-block">组建的团人数达到设置数时的成功提示信息，如:恭喜您组团成功</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹窗中提示</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isshowtips" value="0" {if $config['isshowtips']==0} checked="checked"{/if} type="radio"> 显示
								</label>
								<label class="radio-inline">
									<input name="isshowtips" value="1" {if $config['isshowtips']==1} checked="checked"{/if} type="radio"> 不显示
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹窗中单独购买提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="为空为默认值" name="dandutips"  value="{$config['dandutips']}">
								<span class="help-block">报名时出来的弹窗中单独购买提示,系统会有默认值</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹窗中拼团购买提示</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="为空为默认值" name="pintuantips"  value="{$config['pintuantips']}">
								<span class="help-block">报名时出来的弹窗中拼团购买提示,默认值:几人拼团多少钱</span>
								<span class="help-block">线上组团的活动,可修改为:**千人团节等促销信息</span>
							</div>
						</div>

					</div>
				</div>
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">底部按扭颜色</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">底部按扭配色</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="buttontyle" value="0" {if $config['buttontyle']==0} checked="checked"{/if} type="radio"> 自定义
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="1" {if $config['buttontyle']==1} checked="checked"{/if} type="radio"> 经典蓝
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="2" {if $config['buttontyle']==2} checked="checked"{/if} type="radio"> 拼多多红
								</label>
								<label class="radio-inline">
									<input name="buttontyle" value="3" {if $config['buttontyle']==3} checked="checked"{/if} type="radio"> 京东红
								</label>
								{if $_G['companyname'] =='金策软件'}
								<label class="radio-inline">
									<input name="buttontyle" value="4" {if $config['buttontyle']==4} checked="checked"{/if} type="radio"> 金策默认
								</label>
								{/if}
								{if $system['softmenu'] == 2}
								<label class="radio-inline">
									<input name="buttontyle" value="4" {if $config['buttontyle']==5} checked="checked"{/if} type="radio"> 蓝色宝盒
								</label>
								{/if}
							</div>
						</div>

						{if $system['ruanjian']==2}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">按扭渐变颜色1</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
								<span class="help-block">{php echo $system['softmenu'] == 2 ?'邀请标题背景':'左侧按扭文字颜色（无效）';}</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">按扭渐变颜色2</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
								<span class="help-block">按扭文字颜色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">时间头像底色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorcenter',$config['formcolorcenter']);}
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorcentertext',$config['formcolorcentertext']);}
								<span class="help-block">中间按扭文字颜色</span>
							</div>
						</div>
						{else}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">左侧按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorhead',$config['formcolorhead']);}
								<span class="help-block">左侧按扭与表单浅色部分的背景色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorlefttext',$config['formcolorlefttext']);}
								<span class="help-block">左侧按扭文字颜色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">中间按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorcenter',$config['formcolorcenter']);}
								<span class="help-block">中间按扭表单浅色部分的背景色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorcentertext',$config['formcolorcentertext']);}
								<span class="help-block">中间按扭文字颜色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">右侧按扭颜色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolortop',$config['formcolortop']);}
								<span class="help-block">右侧按扭与表单深色部分的背景色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('formcolorrighttext',$config['formcolorrighttext']);}
								<span class="help-block">右侧按扭文字颜色</span>
							</div>
						</div>
						{/if}
						{if $_G['companyname'] =='金策软件'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">金策：多人参与底色</label>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('jince_bgcolor_left',$config['jince_bgcolor_left']);}
								<span class="help-block">左侧+右侧底色</span>
							</div>
							<div class="col-sm-5 col-xs-12">
								{php echo view_form_field_color('jince_bgcolor_center',$config['jince_bgcolor_center']);}
								<span class="help-block">中间底色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">金策：倒计时标题</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="jince_time_title" value="0" {if $config['jince_time_title']==0} checked="checked"{/if} type="radio"> 显示
								</label>
								<label class="radio-inline">
									<input name="jince_time_title" value="1" {if $config['jince_time_title']==1} checked="checked"{/if} type="radio"> 不显示
								</label>
							</div>
						</div>
						{/if}
					</div>
					<div class="panel-footer">弹出的提示窗口颜色与右侧按扭颜色一致</div>
				</div>
				{/if}
			</div>
			{/if}
			<!-- <div class="tab-pane " id="shareset"> -->
			<!-- </div> -->
			{include file='theme_worker'}
			{include file='theme_share'}
			{include file='theme_other'}
			{if $system['fenxiao'] == '1'}
			{include file='theme_comm'}
			{/if}
			{if $system['lottery']==1}
			{include file='../../plugin/lottery/template/web/lottery_config'}
			{/if}
			{if $system['yx_coupon']==1}
			{include file='../../plugin/coupon/template/web/config'}
			{/if}
			{if $system['is_lz_chest'] == '1'}
			{include file='../../plugin/lingze/template/web/config'}
			{/if}
			{if $system['fanpai']==1 || $system['islottery']==1}
			{include file='theme_fanpai'}
			{/if}
			{if ($system['wxapp']!=0 && $system['softmode']!=0) }
			{include file='theme_wxapp'}
			{/if}

			{if $system['live']==1}
			{include file='theme_live'}
			{/if}
			{if $system['ruanjian']=='5'}
			{include file='theme_bargain'}
			{/if}
			{if $system['iskoi']=='1'}
			{include file='theme_five_koi'}
			{/if}
			{if $system['is_lz_game']=='1'}
			{include file='game/theme_lz_game'}
			{/if}
			<!--微客-->
			{if $system['ruanjian']==10}
			{include file='../../plugin/weike/template/web/config'}
			{/if}
			<!--红包雨引入配置模版-->
			{if $system['redrain']>0}
			{include file='../../plugin/redrain/template/web/config'}
			{/if}
			<!--代言模版-->
			{if $system['daiyan']>0}
			{include file='../../plugin/daiyan/template/web/config'}
			{/if}

			<div class="tab-pane" id="kmset">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">卡密设置</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">开启卡密</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iscode" value="0" {if $config['iscode']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="iscode" value="1" {if $config['iscode']==1} checked="checked"{/if} type="radio"> 开启
								</label>
								<span class="help-block" style="color: red;">开启后支付参与活动的用户会得到一组卡密（需提前导入），注意：团长在拼团成功后才可以获取</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">卡号别称</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:卡号" name="code_title"  value="{if empty($config['code_title'])}卡号{else}{$config['code_title']}{/if}">
								<span class="help-block">必填</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">密码别称</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:密码" name="code_pwd"  value="{$config['code_pwd']}">
								<span class="help-block">选填</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">提示别称</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:小贴士" name="code_tips"  value="{$config['code_tips']}">
								<span class="help-block">选填</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">进行中别称</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:未开奖" name="code_ing"  value="{$config['code_ing']}">
								<span class="help-block">选填</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">结束后别称</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="例如:已开奖" name="code_end"  value="{$config['code_end']}">
								<span class="help-block">选填</span>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="tab-pane" id="formset">
			{if !($system['isform']==1 && $config['form_mode']>0)}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}拼团①{/if}表单设置: 默认只收集用户姓名和电话，可以自定义增加【文本信息】【下拉菜单信息】【时间日期选择】</div>
					<div class="panel-body" style="">

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">姓名</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="nametext"  value="{$config['nametext']}">
								<span class="help-block">默认为[姓名],可以任意修改,如改成[宝宝姓名]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">电话</label>
							<div class="col-sm-8 col-xs-12">
								{if $system['softmode']==1 && $system['is_new_wxapp']==1}
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="mobiletext"  value="{$config['mobiletext']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="mobile_input_type">
										<option value="1" {if $config['mobile_input_type'] == 1 || !$config['mobile_input_type']}selected="selected"{/if}>自由输入</option>
										<option value="2" {if $config['mobile_input_type'] == 2 }selected="selected"{/if}>强制采集</option>
									</select>
								</div>
								{else}
								<input type="text" class="form-control"  placeholder="" name="mobiletext"  value="{$config['mobiletext']}">
								{/if}
								<span class="help-block">默认为[手机号],可以任意修改,如改成[妈妈电话]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">①文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="datetime"  value="{$config['datetime']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="datetimetype">
										<option value="1" {if $config['datetimetype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['datetimetype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['datetimetype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['datetimetype'] == 0 }selected="selected"{/if}>日期</option>
										<option value="10" {if $config['datetimetype'] == 10 }selected="selected"{/if}>日期范围</option>
									</select>
								</div>
								<span class="help-block">例如需要日期信息，此处填【**日期】，例如 预约日期，不需要地址信息此处就留空</span>
							</div>
						</div>
						<!--						日期类型增加起止时间端-->
						{if  $config['datetimetype'] == 10}
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">日期选择范围</label>
							<div class="col-sm-7 col-xs-12">
								<div class="input-group">
									{php echo view_form_field_daterange('datetimelimit', array('start' => $config['datetimelimit_start'], 'end' => $config['datetimelimit_end']));}
								</div>
							</div>
						</div>
						{/if}
						{if ($system['softstyle']!=5 && $system['gift']!=1 && $system['isboxgift']!=1 && $system['is_mystery_boxes']==0  && $system['is_mystery_boxes_feichi']==0&& $config['lz_big_gift']!=1 && !($system['is_mother_boxes']==1 && $config['mother_boxes_form_select']==0))}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">②文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="address"  value="{$config['address']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addresstype" id="addresstype" onchange="address_change()">
										<option value="0" {if $config['addresstype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['addresstype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['addresstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['addresstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="2" {if $config['addresstype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['addresstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['addresstype'] == 9 }selected="selected"{/if}>车牌号</option>
<!--									备用参数页面不出现 <input type="hidden" name="addresstype" value="-1" />-->
									</select>
								</div>
								<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
							</div>
						</div>
						<div class="form-group" id="mut_addresstype" style="{if $config['addresstype'] != 2 && $config['addresstype'] != 3 }display: none{/if}">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="addressoptions">
									<div class="tpl">
										{if !empty($config['addressoptions'])}
										{loop $config['addressoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressoptions[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressoptions"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressoptions[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressoptions"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addaddressoptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{else}
						<input type="hidden" name="addresstype" value="-1" />
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">③文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="formtwo"  value="{$config['formtwo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="formtwotype" id="formtwotype" onchange="formtwo_change()">
										<option value="0" {if $config['formtwotype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['formtwotype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['formtwotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['formtwotype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="10" {if $config['formtwotype'] == 10 }selected="selected"{/if}>日期范围</option>
										<option value="2" {if $config['formtwotype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['formtwotype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['formtwotype'] == 9 }selected="selected"{/if}>车牌号</option>
										<!--									备用参数页面不出现 <input type="hidden" name="addresstype" value="-1" />-->
									</select>
								</div>
							</div>
						</div>

						<div class="form-group" id="date_formtwotype" style="{if $config['formtwotype'] != 10 }display: none{/if}">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">日期选择范围</label>
							<div class="col-sm-7 col-xs-12">
								<div class="input-group">
									{php echo view_form_field_daterange('formtwolimit', array('start' => $config['formtwolimit_start'], 'end' => $config['formtwolimit_end']));}
								</div>
								<span class="help-block">此处为当前日期为不限制日期范围</span>
							</div>
						</div>

						<div class="form-group" id="mut_formtwotype" style="{if $config['formtwotype'] != 2 && $config['formtwotype'] != 3 }display: none{/if}">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="formtwooptions">
									<div class="tpl">
										{if !empty($config['formtwooptions'])}
										{loop $config['formtwooptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwooptions[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwooptions"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwooptions[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwooptions"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addformtwooptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">④文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="addinfo"  value="{$config['addinfo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addinfotype">
										<option value="1" {if $config['addinfotype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['addinfotype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['addinfotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['addinfotype'] == 0 }selected="selected"{/if}>日期</option>
									</select>
								</div>
								{if $system['is_mother_boxes']==1}
								<span class="help-block">妈妈宝盒时这里选择日期，前端会跟据客户选的宝妈还是孕妈提示宝宝生日和孕产期</span>
								{/if}
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">⑤文本/多选</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="shops"  value="{$config['shops']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="shopstype" id="shopstype" onchange="shops_change()">
										<option value="1" {if $config['shopstype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['shopstype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['shopstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['shopstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="0" {if $config['shopstype'] == 0 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['shopstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="4" {if $config['shopstype'] == 4 }selected="selected"{/if}>多选</option>
										{if $system['is_multiple_merchants']}
										<option value="5" {if $config['shopstype'] == 5 || $config['shopstype51'] == 1} selected="selected"{/if}>商家多选</option>
										{/if}
										{if ($system['ispresale']==1 && $config['presale']['shopstype']!=8) || $system['ispresale']==0}
										<option value="8" {if $config['shopstype'] == 8 } selected="selected"{/if}>多选分类{php echo $config['shopstype'] == 8?'':' (需先提交)';}</option>
										{/if}
										<option value="9" {if $config['shopstype'] == 9 }selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">粉丝参加时默认提供姓名和电话的表单，如果需要下拉菜单类型的选项，例如【选择拍摄类型】【选择性别】【选择年级】，不需要则此处就留空；商家多选需要提交后，方可更新商家。</span>
							</div>
						</div>
						<div class="form-group" id="mut_shopstype" style="{if $config['shopstype'] != 0 && $config['shopstype'] != 3 && $config['shopstype'] != 4 && $config['shopstype'] != 5 }display: none{/if}">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="options">
									<div class="tpl">
										{if !empty($config['options'])}
										{loop $config['options'] $index $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="options[]" value="{$row}" class="form-control" placeholder="选项名称">
											{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
											<span class="input-group-addon">价格</span>
											<input type="text" name="shops_price[]" value="{$config['shops_price'][$index]}" class="form-control" placeholder="0.00">
											{/if}
											<span class="input-group-addon"><a href="javascript:;" class="delOptions"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="options[]" class="form-control" placeholder="选项名称">
											{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
											<span class="input-group-addon">价格</span>
											<input type="text" name="shops_price[]" class="form-control" placeholder="0.00">
											{/if}
											<span class="input-group-addon"><a href="javascript:;" class="delOptions"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addOptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						<div class="form-group" id="mut41_shopstype" style="{if $config['shopstype'] != 4}display: none{/if}">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">多选配置</label>
							<div class="col-sm-7 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">最少</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmin"  value="{$config['shopsmin']}">
									<span class="input-group-addon">最多</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmax"  value="{$config['shopsmax']}">
								</div>
							</div>
						</div>
						<div class="form-group" id="mut42_shopstype" style="{if $config['shopstype'] != 4}display: none{/if}">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">固定选项</label>
							<div class="col-sm-7 col-xs-12">
								<div id="gudingoptions">
									<div class="tpl">
										{if !empty($config['gudingoptions'])}
										{loop $config['gudingoptions'] $index $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingoptions[]" value="{$row}" class="form-control" placeholder="选项名称">
											{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
											<span class="input-group-addon">价格</span>
											<input type="text" name="shops_price_guding[]" value="{$config['shops_price_guding'][$index]}" class="form-control" placeholder="0.00">
											{/if}
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingoptions[]" class="form-control" placeholder="选项名称">
											{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
											<span class="input-group-addon">价格</span>
											<input type="text" name="shops_price_guding[]" class="form-control" placeholder="0.00">
											{/if}
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addgudingOptions" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加固定选项</a>
								</div>
							</div>
						</div>
						<!--						多选分类-->
						{if $config['shopstype'] == 8}
						<style>
							.w270{
								width: 270px !important;
							}
							.w80{
								width: 80px !important;
							}
							.w120{
								width: 120px !important;
							}
							.add_cate_product_item{
								color: #5c99f7;
							}
							.dx_cate_div{
								margin-top: 20px;
							}
							.dx_cate_div::after {
								content: ".";
								clear: both;
								height: 0;
								visibility: hidden;
								display: block;
							}
						</style>
						<?php
							if($system['softstyle']==101 || $system['softstyle']==102 || $system['softstyle']==104){
								$sj_list = db_getall(t_shangjia,["id >"=>0],["id","name"]);
						$sj_total = count($sj_list);
						}else{
						$sj_list = [];
						$sj_total = 0;
						}
						?>
						<!--						分类设置-->
						<div class="dx_cate_info">
							{if $config['dx_cate'] && is_array($config['dx_cate'])}
							<input type="hidden" class="dx_cate_max_id" value="{$config['dx_max_cid']}">
							<input type="hidden" class="dx_cate_max_pid" value="{$config['dx_max_pid']}">
							<div class="form-group">
								<label class="col-sm-2 col-xs-12 control-label">多选分类设置</label>
								<div class="col-sm-9 col-xs-12 input-group-parent dx_cate_div_parent">
									{loop $config['dx_cate'] $index $item}
									<!--									分类单元-->
									<div class="dx_cate_div" {if $item['status']==0}style="display:none;"{/if}>
										<div class="tpl">
											<?php $prefix_dx_filed = "dx_cate[".$item['id']."]"; ?>
											<div class="input-group" style="margin-top: 10px;">
												<span class="input-group-addon">分类名称</span>
												<input type="text" name="{$prefix_dx_filed}[name]" class="form-control" value="{$item['name']}" style="width: 180px;" >
												<input type="hidden" name="{$prefix_dx_filed}[id]"  class="form-control dx_category" value="{$item['id']}" >
												<span class="input-group-addon">最小数</span>
												<input type="text" name="{$prefix_dx_filed}[min]" class="form-control" value="{$item['min']}" style="width: 50px;">
												<span class="input-group-addon">最多数</span>
												<input type="text" name="{$prefix_dx_filed}[max]" class="form-control" value="{$item['max']}" style="width: 50px;">
												<span class="input-group-addon">状态</span>
												<select class="form-control cus-form-select w80" name="{$prefix_dx_filed}[status]" >
													<option value="1" {if $item['status']==1}selected="selected"{/if} >启用</option>
													<option value="0" {if $item['status']==0}selected="selected"{/if}>禁用</option>
												</select>
												<label class="input-group-addon" >
													<a href="javascript:;" class="add_cate_product_item"  >
														<i  class="fa fa-plus-circle"></i>
														添加分类商品
													</a>
												</label>
											</div>
										</div>
										<div style="clear: both;"></div>
										{if $item && is_array($item['list'])}
										{loop $item['list'] $k $v}
										<div class="col-sm-9 col-xs-12 dx_cate_product_item" style="margin-top:10px;width: 100%;">
											<?php $prefix_dx_pfiled = "dx_product[".$v['id']."]"; ?>
											<div class="input-group" style="margin-top: 10px;">
												<span class="input-group-addon">商品名称</span>
												<input type="text" name="{$prefix_dx_pfiled}[name]" class="form-control w270 dx_p_name" value="{$v['name']}" >
												<input type="hidden" name="{$prefix_dx_pfiled}[id]" value="{$v['id']}" >
												<input type="hidden" name="{$prefix_dx_pfiled}[c_id]" value="{$v['c_id']}" >

												<span class="input-group-addon" {if $system['selecet_pay']==0}style="display:none;"{/if}>价格</span>
												<input type="text" name="{$prefix_dx_pfiled}[price]" class="form-control w80 dx_p_price" value="{$v['price']}" {if $system['selecet_pay']==0}style="display:none;"{/if}>
												<span class="input-group-addon" {if $sj_total==0 || $config['form_five_qty_bind_shangjia']==0}style="display:none"{/if}>绑定商家</span>
												<select class="form-control cus-form-select w120" name="{$prefix_dx_pfiled}[sj_id]" {if $sj_total==0 || $config['form_five_qty_bind_shangjia']==0}style="display:none"{/if}>
													{loop $sj_list  $vv}
													<option value="{$vv['id']}" {if $vv['id']==$v['sj_id']}selected="selected"{/if}>{$vv['name']}</option>
													{/loop}
												</select>
												<span class="input-group-addon" {if $config['form_five_qty']==0}style="display:none;"{/if}>限购</span>
												<input type="text" name="{$prefix_dx_pfiled}[qty]" class="form-control w80 dx_p_qty" value="{$v['qty']}" {if $config['form_five_qty']==0}style="display:none;"{/if} {if $v['is_default']==1}readonly{/if}>

												<span class="input-group-addon">必选</span>
												<select class="form-control cus-form-select w80 dx_p_is_default" name="{$prefix_dx_pfiled}[is_default]" >
													<option value="0" {if $v['is_default']==0}selected="selected"{/if}>否</option>
													<option value="1" {if $v['is_default']==1}selected="selected"{/if}>是</option>
												</select>
												<span class="input-group-addon">状态</span>
												<select class="form-control cus-form-select w80 product_status" name="{$prefix_dx_pfiled}[status]" >
													<option value="1" {if $v['status']==1}selected="selected"{/if}>启用</option>
													<option value="0" {if $v['status']==0}selected="selected"{/if}>禁用</option>
												</select>
											</div>
										</div>
										{/loop}
										{/if}
									</div>
									<!--									分类单元-->
									{/loop}
								</div>
							</div>
							{else}
							<input type="hidden" class="dx_cate_max_id" value="{$config['dx_max_cid']}">
							<input type="hidden" class="dx_cate_max_pid" value="{$config['dx_max_pid']}">
							<div class="form-group">
								<?php $config['dx_max_cid']=1; $config['dx_max_pid']=1; ;?>
								<label class="col-sm-2 col-xs-12 control-label">多选分类设置</label>
								<div class="col-sm-9 col-xs-12 input-group-parent dx_cate_div_parent">
									<!--									分类单元-->
									<div class="dx_cate_div">
										<div class="tpl">
											<div class="input-group" style="margin-top: 10px;">
												<span class="input-group-addon">分类名称</span>
												<input type="text" name="dx_cate[1][name]" class="form-control" value="" style="width: 180px;">
												<input type="hidden" name="dx_cate[1][id]"  class="form-control dx_category" value="1" >
												<span class="input-group-addon">最小数</span>
												<input type="text" name="dx_cate[1][min]" class="form-control" value="1" style="width: 50px;">
												<span class="input-group-addon">最多数</span>
												<input type="text" name="dx_cate[1][max]" class="form-control" value="1" style="width: 50px;">
												<span class="input-group-addon">状态</span>
												<select class="form-control cus-form-select w80" name="dx_cate[1][status]" >
													<option value="1" >启用</option>
													<option value="0" >禁用</option>
												</select>
												<label class="input-group-addon" >
													<a href="javascript:;" class="add_cate_product_item"  >
														<i  class="fa fa-plus-circle"></i>
														添加分类商品
													</a>
												</label>
											</div>
										</div>
										<div style="clear: both;"></div>
									</div>
									<!--									分类单元-->
								</div>
							</div>
							{/if}
						</div>
						<div style="width: 200px;margin-left: 240px;margin-bottom: 40px">
							<a href="javascript:;" class="add_cate_item"  style="margin-top: 40px;">
								<i style="margin-top: 10px;" class="fa fa-plus-circle"></i>
								添加多选分类
							</a>
						</div>


					<div class="form-group">
						<label class="col-sm-2 col-xs-12 control-label">商品总选择</label>
						<div class="col-sm-4 col-xs-12">
							<div class="input-group">
								<span class="input-group-addon">最少</span>
								<input type="number" class="form-control"  placeholder="" name="shopsmin"  value="{$config['shopsmin']}">
								<span class="input-group-addon">最多</span>
								<input type="number" class="form-control"  placeholder="" name="shopsmax"  value="{$config['shopsmax']}">
							</div>
						</div>
					</div>



					<script>

						var CURTCATELENGTH = Number($(".dx_cate_max_id").val());
						//添加分类
						$(".add_cate_item").click(function () {

								CURTCATELENGTH +=1;
								let temp_cate_num = CURTCATELENGTH;
								let tmp_cate_html = '<div class="dx_cate_div">\n' +
										'\t\t\t\t\t\t\t\t\t\t<div class="tpl">\n' +
										'\t\t\t\t\t\t\t\t\t\t\t<div class="input-group" style="margin-top: 10px;">\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">分类名称</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="dx_cate['+temp_cate_num+'][name]" class="form-control dx_c_name" value="" style="width: 180px;">\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="dx_cate['+temp_cate_num+'][id]"  class="form-control dx_category" value="'+temp_cate_num+'" >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最小数</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="dx_cate['+temp_cate_num+'][min]" class="form-control dx_c_min" value="1" style="width: 50px;">\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最多数</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="dx_cate['+temp_cate_num+'][max]" class="form-control dx_c_max" value="1" style="width: 50px;">\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">状态</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<select class="form-control cus-form-select w80 category_status" name="dx_cate['+temp_cate_num+'][status]" >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1" >启用</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="0" >禁用</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t</select>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<label class="input-group-addon" >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<a href="javascript:;" class="add_cate_product_item"  >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i  class="fa fa-plus-circle"></i>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t\t添加分类商品\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t</label>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
										'\t\t\t\t\t\t\t\t\t\t</div>\n' +
										'\t\t\t\t\t\t\t\t\t</div>';
								$(".dx_cate_div_parent").append(tmp_cate_html);
								$(".dx_cate_max_id").val(CURTCATELENGTH)
							});
							var CURTPRODUCTLENGTH = Number($(".dx_cate_max_pid").val());
							//添加分类商品
							$(".dx_cate_info").on("click",".add_cate_product_item",function () {
								let cate_id = $(this).parent().parent().find(".dx_category").val();

							CURTPRODUCTLENGTH +=1;
							let temp_product_num = CURTPRODUCTLENGTH;
							let tmp_product_html= '';
							let tmp_sj_total = "{$sj_total}";
							let tmp_bind_shangjia = "{$config['form_five_qty_bind_shangjia']}";
							let selecet_pay = "{$system['selecet_pay']}";
							let form_five_qty = "{$config['form_five_qty']}";
							let price_html = '';
							let qty_html = '';
							let dx_cate_product_html = '<div class="col-sm-9 col-xs-12 dx_cate_product_item" style="margin-top:10px;width: 100%;">\n' +
									'\t\t\t\t\t\t\t\t\t\t\t<div class="input-group" style="margin-top: 10px;">\n' +
									'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">商品名称</span>\n' +
									'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="dx_product['+temp_product_num+'][name]" class="form-control w270 dx_p_name" value="" >\n' +
									'\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="dx_product['+temp_product_num+'][id]" value="'+temp_product_num+'" >\n' +
									'\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="dx_product['+temp_product_num+'][c_id]" value="'+cate_id+'" >\n';
							if (selecet_pay==1){
								price_html = '<span class="input-group-addon">价格</span>\n' +
										'<input type="text" name="dx_product['+temp_product_num+'][price]" class="form-control w80 dx_p_price" value="0">\n';
							}else{
								price_html = '<span class="input-group-addon" style="display: none">价格</span>\n' +
										'<input type="text" name="dx_product['+temp_product_num+'][price]" class="form-control w80 dx_p_price" value="0" style="display: none">\n';
							}
							if (form_five_qty==1){
								qty_html = '<span class="input-group-addon">限购</span>\n' +
										'<input type="text" name="dx_product['+temp_product_num+'][qty]" class="form-control w80 dx_p_qty" value="9999">\n';
							}else{
								qty_html = '<span class="input-group-addon" style="display: none">限购</span>\n' +
										'<input type="text" name="dx_product['+temp_product_num+'][qty]" class="form-control w80 dx_p_qty" value="9999" style="display: none">\n';
							}
							dx_cate_product_html += price_html;
							dx_cate_product_html += qty_html;
							let sj_tmp_html = 		'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">绑定商家</span>\n' +
									'\t\t\t\t\t\t\t\t\t\t\t\t<select class="form-control cus-form-select w120" name="dx_product['+temp_product_num+'][sj_id]" >\n';
							if (tmp_sj_total>0){
								{loop $sj_list  $row}
								sj_tmp_html += '<option value="'+"{$row['id']}"+'" >'+"{$row['name']}"+'</option>';
								{/loop}
									sj_tmp_html += '</select>\n';
								}

								let dx_end_html = 		'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">必选</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<select class="form-control cus-form-select w80 dx_p_is_default" name="dx_product['+temp_product_num+'][is_default]" >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="0" >否</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1" >是</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t</select>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">状态</span>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t<select class="form-control cus-form-select w80 product_status" name="dx_product['+temp_product_num+'][status]" >\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1" >启用</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="0" >禁用</option>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t\t</select>\n' +
										'\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
										'\t\t\t\t\t\t\t\t\t\t</div>';
								if (tmp_sj_total>0 && tmp_bind_shangjia>0){
									tmp_product_html = dx_cate_product_html+sj_tmp_html+dx_end_html;
								}else{
									tmp_product_html = dx_cate_product_html+dx_end_html;
								}
								$(this).parents(".dx_cate_div").append(tmp_product_html);
								$(".dx_cate_product_item").val()
							});
						//删除商品
						$(".dx_cate_info").on("change",".product_status",function () {
							let tmp_op_val = $(this).val();
							if (tmp_op_val==0){
								let dx_p_name = $(this).parent().find(".dx_p_name").val();
								let dx_p_price = $(this).parent().find(".dx_p_price").val();
								if (!dx_p_name && !dx_p_price){
									$(this).parent().parent().remove();
								}
							}
						});
						//删除分类
						$(".dx_cate_info").on("change",".category_status",function () {
							let tmp_op_val = $(this).val();
							if (tmp_op_val==0){
								let dx_c_name = $(this).parent().find(".dx_c_name").val();
								let dx_c_min = $(this).parent().find(".dx_c_min").val();
								let dx_c_max = $(this).parent().find(".dx_c_max").val();
								if (!dx_c_name && !dx_c_min && !dx_c_max){
									$(this).parent().parent().parent().remove();
								}
							}
						});
						//必选切换
						$(".dx_cate_info").on("change",".dx_p_is_default",function () {
							var form_five_qty_status = "{$config['form_five_qty']}";
							if (form_five_qty_status==1){
								let tmp_val = $(this).val();
								if (tmp_val==1){
									$(this).parent().children(".dx_p_qty").val(9999);
									$(this).parent().children(".dx_p_qty").attr("readonly","readonly");
								}else{
									$(this).parent().children(".dx_p_qty").removeAttr("readonly");
								}
							}
						});
					</script>

					{/if}



					<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">协议条款</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="xieyi"  value="{$config['xieyi']}">
								<span class="help-block">例如:已知晓本定单不退不换 客户只有勾选才可以付款</span>
							</div>
						</div>

					</div>
				</div>

				{if $system['bottom_jiage'] == '1' || $system['bottom_jiage'] == '2'}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">拼团②表单设置</div>
					<div class="panel-body" style="">

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">姓名</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="nametext2"  value="{$config['form2']['nametext']}">
								<span class="help-block">默认为[姓名],可以任意修改,如改成[宝宝姓名]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">电话</label>
							<div class="col-sm-8 col-xs-12">
								{if $system['softmode']==1 && $system['is_new_wxapp']==1}
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="mobiletext2"  value="{$config['form2']['mobiletext']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="mobile_input_type2">
										<option value="1" {if $config['form2']['mobile_input_type'] == 1 || !$config['form2']['mobile_input_type']}selected="selected"{/if}>自由输入</option>
										<option value="2" {if $config['form2']['mobile_input_type'] == 2 }selected="selected"{/if}>强制采集</option>
									</select>
								</div>
								{else}
								<input type="text" class="form-control"  placeholder="" name="mobiletext2"  value="{$config['form2']['mobiletext']}">
								{/if}
								<span class="help-block">默认为[手机号],可以任意修改,如改成[妈妈电话]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">①文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="datetime2"  value="{$config['form2']['datetime']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="datetimetype2">
										<option value="1" {if $config['form2']['datetimetype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form2']['datetimetype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form2']['datetimetype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['form2']['datetimetype'] == 0 }selected="selected"{/if}>日期</option>
									</select>
								</div>
								<span class="help-block">例如需要日期信息，此处填【**日期】，例如 预约日期，不需要地址信息此处就留空</span>
							</div>
						</div>

						{if ($system['softstyle']!=5 && $system['gift']!=1) }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">②文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="address2"  value="{$config['form2']['address']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addresstype2">
										<option value="0" {if $config['form2']['addresstype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['form2']['addresstype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form2']['addresstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form2']['addresstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="2" {if $config['form2']['addresstype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form2']['addresstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['form2']['addresstype'] == 9 }selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
							</div>
						</div>
						{if $config['form2']['addresstype'] == 2 || $config['form2']['addresstype'] == 3 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="addressOptions2">
									<div class="tpl">
										{if !empty($config['form2']['addressoptions'])}
										{loop $config['form2']['addressoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressOptions2[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressOptions2"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressOptions2[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressOptions2"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addaddressOptions2" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						{/if}

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">③文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="formtwo2"  value="{$config['form2']['formtwo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="formtwotype2">
										<option value="0" {if $config['form2']['formtwotype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['form2']['formtwotype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form2']['formtwotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form2']['formtwotype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="2" {if $config['form2']['formtwotype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form2']['formtwotype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['form2']['formtwotype'] == 9 }selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
							</div>
						</div>
						{if $config['form2']['formtwotype'] == 2 || $config['form2']['formtwotype'] == 3 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="formtwoOptions2">
									<div class="tpl">
										{if !empty($config['form2']['formtwooptions'])}
										{loop $config['form2']['formtwooptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwoOptions2[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwoOptions2"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwoOptions2[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwoOptions2"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addformtwoOptions2" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">④文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="addinfo2"  value="{$config['form2']['addinfo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addinfotype2">
										<option value="1" {if $config['form2']['addinfotype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form2']['addinfotype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form2']['addinfotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['form2']['addinfotype'] == 0 }selected="selected"{/if}>日期</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">⑤文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="shops2"  value="{$config['form2']['shops']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="shopstype2">
										<option value="1" {if $config['form2']['shopstype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form2']['shopstype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form2']['shopstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form2']['shopstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="0" {if $config['form2']['shopstype'] == 0 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form2']['shopstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="4" {if $config['form2']['shopstype'] == 4 }selected="selected"{/if}>多选</option>
										<option value="5" {if $config['form2']['shopstype'] == 5 || $config['form2']['shopstype5'] == 1} selected="selected"{/if}>商家多选</option>
										<option value="9" {if $config['form2']['shopstype'] == 9} selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">粉丝参加时默认提供姓名和电话的表单，如果需要下拉菜单类型的选项，例如【选择拍摄类型】【选择性别】【选择年级】，不需要则此处就留空；商家多选需要提交后，方可更新商家。</span>
							</div>
						</div>
						{if $config['form2']['shopstype'] != 1 && $config['form2']['shopstype'] != 2 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="Options2">
									<div class="tpl">
										{if !empty($config['form2']['options'])}
										{loop $config['form2']['options'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="Options2[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delOptions2"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="Options2[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delOptions2"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addOptions2" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						{if $config['form2']['shopstype'] == 4 }
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">多选配置</label>
							<div class="col-sm-7 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">最少</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmin2"  value="{$config['form2']['shopsmin']}">
									<span class="input-group-addon">最多</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmax2"  value="{$config['form2']['shopsmax']}">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">固定选项</label>
							<div class="col-sm-7 col-xs-12">
								<div id="gudingOptions2">
									<div class="tpl">
										{if !empty($config['form2']['gudingoptions'])}
										{loop $config['form2']['gudingoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingOptions2[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions2"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingOptions2[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions2"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addgudingOptions2" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加固定选项</a>
								</div>
							</div>
						</div>
						{/if}

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">协议条款</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="xieyi2"  value="{$config['form2']['xieyi']}">
								<span class="help-block">例如:已知晓本定单不退不换 客户只有勾选才可以付款</span>
							</div>
						</div>

					</div>
				</div>
				{/if}

				{if $system['bottom_jiage'] == '2'}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">拼团③表单设置</div>
					<div class="panel-body" style="">

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">姓名</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="nametext3"  value="{$config['form3']['nametext']}">
								<span class="help-block">默认为[姓名],可以任意修改,如改成[宝宝姓名]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">电话</label>
							<div class="col-sm-8 col-xs-12">
								{if $system['softmode']==1 && $system['is_new_wxapp']==1}
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="mobiletext3"  value="{$config['form3']['mobiletext']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="mobile_input_type3">
										<option value="1" {if $config['form3']['mobile_input_type'] == 1 || !$config['form3']['mobile_input_type']}selected="selected"{/if}>自由输入</option>
										<option value="2" {if $config['form3']['mobile_input_type'] == 2 }selected="selected"{/if}>强制采集</option>
									</select>
								</div>
								{else}
								<input type="text" class="form-control"  placeholder="" name="mobiletext3"  value="{$config['form3']['mobiletext']}">
								{/if}
								<span class="help-block">默认为[手机号],可以任意修改,如改成[妈妈电话]</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">①文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="datetime3"  value="{$config['form3']['datetime']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="datetimetype3">
										<option value="1" {if $config['form3']['datetimetype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form3']['datetimetype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form3']['datetimetype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['form3']['datetimetype'] == 0 }selected="selected"{/if}>日期</option>
									</select>
								</div>
								<span class="help-block">例如需要日期信息，此处填【**日期】，例如 预约日期，不需要地址信息此处就留空</span>
							</div>
						</div>

						{if ($system['softstyle']!=5 && $system['gift']!=1) }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">②文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="address3"  value="{$config['form3']['address']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addresstype3">
										<option value="0" {if $config['form3']['addresstype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['form3']['addresstype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form3']['addresstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form3']['addresstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="2" {if $config['form3']['addresstype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form3']['addresstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['form3']['addresstype'] == 9 }selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
							</div>
						</div>
						{if $config['form3']['addresstype'] == 2 || $config['form3']['addresstype'] == 3 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="addressOptions3">
									<div class="tpl">
										{if !empty($config['form3']['addressoptions'])}
										{loop $config['form3']['addressoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressOptions3[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressOptions3"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="addressOptions3[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="deladdressOptions3"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addaddressOptions3" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">③文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="formtwo3"  value="{$config['form3']['formtwo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="formtwotype3">
										<option value="0" {if $config['form3']['formtwotype'] == 0 }selected="selected"{/if}>文本</option>
										<option value="1" {if $config['form3']['formtwotype'] == 1 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form3']['formtwotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form3']['formtwotype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="2" {if $config['form3']['formtwotype'] == 2 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form3']['formtwotype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="9" {if $config['form3']['formtwotype'] == 9 }selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">例如需要地址信息，此处填【**地址】，例如 您的地址，不需要地址信息此处就留空</span>
							</div>
						</div>
						{if $config['form3']['formtwotype'] == 2 || $config['form3']['formtwotype'] == 3 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="formtwoOptions3">
									<div class="tpl">
										{if !empty($config['form3']['formtwooptions'])}
										{loop $config['form3']['formtwooptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwoOptions3[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwoOptions3"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="formtwoOptions3[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delformtwoOptions3"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addformtwoOptions3" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">④文本/日期</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="addinfo3"  value="{$config['form3']['addinfo']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="addinfotype3">
										<option value="1" {if $config['form3']['addinfotype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form3']['addinfotype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form3']['addinfotype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="0" {if $config['form3']['addinfotype'] == 0 }selected="selected"{/if}>日期</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">⑤文本/选项</label>
							<div class="col-sm-8 col-xs-12">
								<div class="input-group">
									<input type="text" class="form-control"  placeholder="" name="shops3"  value="{$config['form3']['shops']}">
									<span class="input-group-addon">模式</span>
									<select class="form-control" name="shopstype3">
										<option value="1" {if $config['form3']['shopstype'] == 1 }selected="selected"{/if}>文本</option>
										<option value="2" {if $config['form3']['shopstype'] == 2 }selected="selected"{/if}>数字</option>
										<option value="6" {if $config['form3']['shopstype'] == 6 }selected="selected"{/if}>电话</option>
										<option value="7" {if $config['form3']['shopstype'] == 7 }selected="selected"{/if}>日期</option>
										<option value="0" {if $config['form3']['shopstype'] == 0 }selected="selected"{/if}>下拉菜单</option>
										<option value="3" {if $config['form3']['shopstype'] == 3 }selected="selected"{/if}>单选</option>
										<option value="4" {if $config['form3']['shopstype'] == 4 }selected="selected"{/if}>多选</option>
										<option value="5" {if $config['form3']['shopstype'] == 5 || $config['form3']['shopstype5'] == 1} selected="selected"{/if}>商家多选</option>
										<option value="9" {if $config['form3']['shopstype'] == 9} selected="selected"{/if}>车牌号</option>
									</select>
								</div>
								<span class="help-block">粉丝参加时默认提供姓名和电话的表单，如果需要下拉菜单类型的选项，例如【选择拍摄类型】【选择性别】【选择年级】，不需要则此处就留空；商家多选需要提交后，方可更新商家。</span>
							</div>
						</div>
						{if $config['form3']['shopstype'] != 1 && $config['form3']['shopstype'] != 2 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label"></label>
							<div class="col-sm-8 col-xs-12">
								<div id="Options3">
									<div class="tpl">
										{if !empty($config['form3']['options'])}
										{loop $config['form3']['options'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="Options3[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delOptions3"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="Options3[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delOptions3"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addOptions3" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
								</div>
							</div>
						</div>
						{/if}
						{if $config['form3']['shopstype'] == 4 }
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">多选配置</label>
							<div class="col-sm-7 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">最少</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmin3"  value="{$config['form3']['shopsmin']}">
									<span class="input-group-addon">最多</span>
									<input type="text" class="form-control"  placeholder="" name="shopsmax3"  value="{$config['form3']['shopsmax']}">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label"></label>
							<label class="col-sm-2 col-xs-12 control-label">固定选项</label>
							<div class="col-sm-7 col-xs-12">
								<div id="gudingOptions3">
									<div class="tpl">
										{if !empty($config['form3']['gudingoptions'])}
										{loop $config['form3']['gudingoptions'] $row}
										<div class="input-group" style="margin-top: 10px;">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingOptions3[]" value="{$row}" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions3"><i class="fa fa-times"></i></a></span>
										</div>
										{/loop}
										{else}
										<div class="input-group">
											<span class="input-group-addon">选项名称</span>
											<input type="text" name="gudingOptions3[]" class="form-control" placeholder="选项名称">
											<span class="input-group-addon"><a href="javascript:;" class="delgudingOptions3"><i  class="fa fa-times"></i></a></span>
										</div>
										{/if}
									</div>
									<a href="javascript:;" class="addgudingOptions3" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加固定选项</a>
								</div>
							</div>
						</div>
						{/if}

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">协议条款</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="xieyi3"  value="{$config['form3']['xieyi']}">
								<span class="help-block">例如:已知晓本定单不退不换 客户只有勾选才可以付款</span>
							</div>
						</div>

					</div>
				</div>
				{/if}
				{if $system['isboxgift']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">开宝箱礼品</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label">宝箱底图</label>
							<div class="col-sm-10 col-xs-12">
								<div class="col-sm-6 col-xs-12">
									{php echo view_form_field_image('boxgiftimg',$config['boxgiftimg']);}
									<span class="help-block">样例:<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/dbg.jpg" target="_blank">点击下载模版</a></span>
								</div>
							</div>
						</div>
						<input type="hidden" name="address" value="礼品" />
						{php $addressarr = [0,1,2,3];}
						{loop $addressarr $row}
						<div class="form-group">
							<label class="col-sm-1 col-xs-12 control-label">礼品{php echo $row+1;}：</label>
							<div class="col-sm-11 col-xs-12">
								<div class="col-sm-6 col-xs-12">
									<div class="input-group">
										<span class="input-group-addon">礼品名称</span>
										<input type="text" name="addressoptions[]" class="form-control" placeholder="" value="{$config['addressoptions'][$row]}" >
										<span class="input-group-addon">中奖率</span>
										<input type="text" name="addressprobability[]" class="form-control" placeholder="范围：0-100"  value="{$config['addressprobability'][$row]}">
									</div>
								</div>
								<div class="col-sm-3 col-xs-12">
									{php echo view_form_field_image('addressimg[]',$config['addressimg'][$row]);}
									<span class="help-block">礼品图：500*500px</span>
								</div>
								<div class="col-sm-3 col-xs-12">
									{php echo view_form_field_image('addresslinkimg[]',$config['addresslinkimg'][$row]);}
									<span class="help-block">链接中：1080*任意高度</span>
								</div>
							</div>
						</div>
						{/loop}

					</div>
				</div>
				{/if}
				{if $config['shopstype5'] == 1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">商家排名设置</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">商家排名</label>
							<div class="col-sm-8 col-xs-12">
								<label class="radio-inline">
									<input type="radio" name="shopsort" value="0" {if $config['shopsort']== 0 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									未开启
								</label>
								<label class="radio-inline">
									<input type="radio" name="shopsort" value="1" {if $config['shopsort']== 1 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									按客户选择量
								</label>
								<label class="radio-inline">
									<input type="radio" name="shopsort" value="2" {if $config['shopsort']== 2 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									按客户流览量
								</label>
								<span class="help-block">开启商家多选后，可选择是否开启商家排名及排名方式；开启商家排名将替代红包排行榜</span>
							</div>
						</div>
						{if $config['shopsort']> 0 }
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">排行榜位置</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="iscommshow" value="0" {if $config['iscommshow']==0} checked="checked"{/if} type="radio"> 不显示
								</label>
								<label class="radio-inline">
									<input name="iscommshow" value="1" {if $config['iscommshow']==1} checked="checked"{/if} type="radio"> 顶部显示
								</label>
								<label class="radio-inline">
									<input name="iscommshow" value="2" {if $config['iscommshow']==2} checked="checked"{/if} type="radio"> 中间显示
								</label>
								<label class="radio-inline">
									<input name="iscommshow" value="3" {if $config['iscommshow']==3} checked="checked"{/if} type="radio"> 底部显示
								</label>
								<span class="help-block">顶部:头像的下方; 中间:在顶部图片组与活动内容中间; 底部:活动内容的下方;</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">排行榜中人气值</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isrankrenshu" value="0" {if $config['isrankrenshu']==0} checked="checked"{/if} type="radio"> 显示
								</label>
								<label class="radio-inline">
									<input name="isrankrenshu" value="1" {if $config['isrankrenshu']==1} checked="checked"{/if} type="radio"> 不显示
								</label>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">排行榜中选择数</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="isrankqianshu" value="0" {if $config['isrankqianshu']==0} checked="checked"{/if} type="radio"> 显示
								</label>
								<label class="radio-inline">
									<input name="isrankqianshu" value="1" {if $config['isrankqianshu']==1} checked="checked"{/if} type="radio"> 不显示
								</label>
							</div>
						</div>

						{if $system['ruanjian']==2 || $_G['companyname'] =='飞驰软件'}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">排行榜样式</label>
							<div class="col-sm-8 col-xs-12">
								<div class="col-sm-6 col-xs-12">
									{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
									<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/phb.png" target="_blank">点击下载模版</a>、<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/shangjia.png" target="_blank">商家排行榜</a>、<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/zhuti.png" target="_blank">主题排行榜</a></span>
								</div>
								<div class="col-sm-6 col-xs-12">
									{php echo view_form_field_image('commlistimgbg',$config['commlistimgbg']);}
									<span class="help-block">底图：<a style="color: #000000" href="https://css2020.yixuan.net/2020css/fcpdd/images/dbg.jpg" target="_blank">点击下载模版</a></span>
								</div>
							</div>
						</div>
						{else}
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">排行榜样式</label>
							<div class="col-sm-10 col-xs-12">
								<div class="col-sm-5 col-xs-12">
									{php echo view_form_field_image('commlistimg',$config['commlistimg']);}
									<span class="help-block">顶图：<a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/rank5/rank.png" target="_blank">点击下载模版</a>、<a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/rank5/shangjia.png" target="_blank">商家排行榜</a>、<a style="color: #000000" href="https://css2020.yixuan.net/2019css/default/images/rank5/zhuti.png" target="_blank">主题排行榜</a></span>
								</div>
								<div class="col-sm-7 col-xs-12">
									<div class="col-sm-12 col-xs-12">
										{php echo view_form_field_color('commlistbg1',$config['commlistbg1']);}
										<span class="help-block">排行榜底色</span>
									</div>
									<div class="col-sm-12 col-xs-12">
										{php echo view_form_field_color('commlistbg2',$config['commlistbg2']);}
										<span class="help-block">排行榜每行底色</span>
									</div>
								</div>
							</div>
						</div>
						{/if}
						{/if}
					</div>
				</div>
				{/if}
				{if $system['gift']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">选择礼品/商家</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">提示信息</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="address"  value="{$config['address']}">
								<span class="help-block">活动礼品、活动商家、喜欢的商家</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">选择分组</label>
							<div class="col-sm-8 col-xs-12">
								<select class="form-control" name="giftgroupid">
									<option value="0">不使用支付礼品</option>
									{loop $grouplist $row}
									<option value="{$theme['id']}" {if $config['giftgroupid'] == $row['id'] }selected="selected"{/if}>{$row['groupname']}</option>
									{/loop}
								</select>
								<span class="help-block">选择主题活动对应的礼品分组 <a style="color: #ff0000" href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$themeid));}" target="_blank">点击设置礼品或商家</a></span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">支付模式</label>
							<div class="col-sm-8 col-xs-12">
								<label class="radio-inline">
									<input type="radio" name="typeid" value="0" {if $config['typeid']== 0 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									任选
								</label>
								<label class="radio-inline">
									<input type="radio" name="typeid" value="1" {if $config['typeid']== 1 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									商城(临时无效)
								</label>
								<span class="help-block">任选模式使用固定支付金额，商城模式则根据选择的商品总额进行支付</span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">礼品/商家个数</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" readonly="readonly"  value="{$config['gifttypesum']}">
								<span class="help-block">本次活动提供的礼品种类总数N，选择礼品分组然后保存之后系统将自动获取</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">可选个数</label>
							<div class="col-sm-6 col-xs-6">
								<div class="input-group">
									<input class="form-control" placeholder="例如:1" name="gifttypeselect1" value="{$config['gifttypeselect1']}" type="text">
									<span class="input-group-addon" id="basic-addon2"> - </span>
									<input class="form-control" placeholder="例如:2" name="gifttypeselect2" value="{$config['gifttypeselect2']}" type="text">
								</div>
								<span class="help-block" >【任选模式】粉丝可选1~N种，表示粉丝必须选够设置数量的礼品才可支付</span>
							</div>

						</div>

						<div class="form-group">
							<label class="col-xs-12 col-sm-3 col-md-2 control-label">显示位置</label>
							<div class="col-sm-8 col-xs-12">
								<label class="radio-inline">
									<input type="radio" name="showgift" value="0" {if $config['showgift']== 0 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									活动内容上方
								</label>
								<label class="radio-inline">
									<input type="radio" name="showgift" value="1" {if $config['showgift']== 1 }checked="checked"{/if} class="ng-pristine ng-untouched ng-valid">
									活动内容下方
								</label>
								<span class="help-block">任选模式使用固定支付金额，商城模式则根据选择的商品总额进行支付</span>
							</div>
						</div>
					</div>
				</div>
				{/if}
			{/if}
				{if $system['isform']==1}
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">纯表单页面设置</div>
					<div class="panel-body" style="">
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">纯表单页</label>
							<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
								<label class="radio-inline">
									<input name="form_mode" value="0" {if $config['form_mode']==0} checked="checked"{/if} type="radio"> 关闭
								</label>
								<label class="radio-inline">
									<input name="form_mode" value="1" {if $config['form_mode']==1} checked="checked"{/if} type="radio"> 所有用户均可提交
								</label>
								<label class="radio-inline">
									<input name="form_mode" value="2" {if $config['form_mode']==2} checked="checked"{/if} type="radio"> 其它活动付款的客户才可提交
								</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">表单页面标题</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="formtitle"  value="{$config['formtitle']}">
								<span class="help-block">为空显示此活动的主标题</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">顶部图片</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('formimg',$config['formimg']);}
								<span class="help-block">表单页面顶部的图，弹窗显示，尺寸：高550*宽1080</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">提交后的操作</label>
							<div class="col-sm-10 col-xs-12">
								<select class="form-control" name="formtourl">
									<option value="0" {if $config['formtourl'] == "0" }selected="selected"{/if}>提交成功</option>
									{if count($themelist)>0 }
									{loop $themelist $row}
									{if $row['id']!=$_P['id']}
									<option value="{$row['id']}" {if $config['formtourl'] == $row['id'] }selected="selected"{/if}>跳转到：{$row['id']} - {php echo mb_substr($row['title'],0,25,'utf-8');}</option>
									{/if}
									{/loop}
									{/if}
								</select>
								<span class="help-block">客户提交完资料后，是提示提交成功停留在本页，还是跳转到的活动页面</span>
							</div>
						</div>

					</div>
				</div>
				{/if}


			<!--		客资收集表单-->
			<?php $other_form = \app\model\Common::get_open_other_form($system,$config);?>
			{if $other_form}
			<style>
				.dt_fg{
					padding-top: 20px;
					padding-bottom: 10px;
					border: 1px solid #ffffff;
				}
				.db_fg{
					padding-top: 20px;
					padding-bottom: 10px;
					border: 1px solid #ffffff;
					background: #e7e7eb;
				}
			</style>
			<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">客资收集表单设置</div>
					<div class="panel-body" style="" id="cus_form_body">
						<div class="cus_form_item">
							{if $config['cusForm'] && is_array($config['cusForm'])}
							{loop $config['cusForm'] $k $row}
							<div class="form-group {php echo ($k % 2) ?'db_fg':'dt_fg';}">
								<label class="col-sm-2 col-xs-12 control-label">收集信息</label>
								<?php  $prefix_filed = "cusForm[".($k+1)."]"; ?>
								<div class="col-sm-7 col-xs-12 input-group-parent cus-form-group">
									<div class="input-group">
										<input type="text" class="form-control"  placeholder="" name="{$prefix_filed}[name]"  value="{$row['name']}" >
										<span class="input-group-addon">模式</span>
										<select class="form-control cus-form-select" name="{$prefix_filed}[mode]" data-k="1">
											<option value="8" {if $row['mode'] == 8 }selected="selected"{/if}>姓名</option>
											<option value="6" {if $row['mode'] == 6 }selected="selected"{/if}>电话</option>
											<option value="0" {if $row['mode'] == 0 }selected="selected"{/if}>文本</option>
											<option value="1" {if $row['mode'] == 1 }selected="selected"{/if}>数字</option>
											<option value="7" {if $row['mode'] == 7 }selected="selected"{/if}>日期</option>
											<option value="2" {if $row['mode'] == 2 }selected="selected"{/if}>下拉菜单</option>
											<option value="3" {if $row['mode'] == 3 }selected="selected"{/if}>单选</option>
											<option value="4" {if $row['mode'] == 4 }selected="selected"{/if}>多选</option>
											<option value="5" {if $row['mode'] == 5 }selected="selected"{/if}>多选分类</option>
										</select>
										<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item"><i  class="fa fa-times"></i></a></span>
									</div>
									<div class="col-sm-8 col-xs-12 cus_form_item_val" style="margin-top:10px;">
										{if $row['mode']==2 || $row['mode']==3}
										<div>
											<div class="tpl">
												{loop $row['vals'] $kk $vv}

												<div class="input-group" style="margin-top: 10px;">
													<span class="input-group-addon">选项值</span>
													<input type="text" name="{$prefix_filed}[vals][]" class="form-control" value="{$vv}">
													<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i  class="fa fa-times"></i></a></span>
												</div>
												{/loop}
											</div>
											<a href="javascript:;" class="add_cus_form_item_val" data-k="{php echo ($k+1);}" data-mode="{$row['mode']}" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项值</a>
										</div>
										{elseif $row['mode']==4}
										<div>
											<div class="tpl">
												{loop $row['vals'] $kk1 $vv1}
												<div class="input-group" style="margin-top: 10px;">
													<?php $prefix_item_filed = "[".$kk1."]";?>
													<label class="input-group-addon" style="border: none;background: none">
														<input name="{$prefix_filed}[vals]{$prefix_item_filed}[ischecked]" value="1" type="radio" {if $vv1['ischecked'] == '1' }checked{/if}>固定选项
														<input name="{$prefix_filed}[vals]{$prefix_item_filed}[ischecked]" value="0" type="radio" {if $vv1['ischecked'] == '0' }checked{/if}>正常选项
													</label>
													<span class="input-group-addon">选项值</span>
													<input type="text" name="{$prefix_filed}[vals]{$prefix_item_filed}[name]" class="form-control" value="{$vv1['name']}">
													<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i  class="fa fa-times"></i></a></span>
												</div>

												{/loop}
											</div>
											<a href="javascript:;" class="add_cus_form_item_val" data-k="{php echo ($k+1);}" data-mode="{$row['mode']}" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项值</a>
											<div class="input-group" style="margin-top: 20px;">
												<span class="input-group-addon">最少</span>
												<input type="text" class="form-control"  placeholder="" name="{$prefix_filed}[vals_min]"  value="{$row['vals_min']}">
												<span class="input-group-addon">最多</span>
												<input type="text" class="form-control"  placeholder="" name="{$prefix_filed}[vals_max]"  value="{$row['vals_max']}">
											</div>
										</div>
										{elseif $row['mode']==5}
											{loop $row['vals'] $kk1 $vv1}
											<div class="cus_form_cate_main">
												<?php $prefix_item_filed = "[".$kk1."]";?>
												<div class="input-group" style="margin-top: 10px;">
													<div class="cus_form_cate">
														<span class="input-group-addon">分类名称</span>
														<input type="text" name="{$prefix_filed}[vals]{$prefix_item_filed}[cate_name]" style="width: 180px;" class="form-control" value="{$vv1['cate_name']}">
														<span class="input-group-addon">最小选择数</span>
														<input type="number" name="{$prefix_filed}[vals]{$prefix_item_filed}[cate_min]" style="width: 60px;" class="form-control" value="{$vv1['cate_min']}" min="0">
														<span class="input-group-addon">最大选择数</span>
														<input type="number" name="{$prefix_filed}[vals]{$prefix_item_filed}[cate_max]" style="width: 60px;" class="form-control" value="{$vv1['cate_max']}" min="1">
														<span class="input-group-addon"><a href="javascript:;"  class="del_cus_form_cate_val"><i  class="fa fa-times"></i></a></span>
														<span class="input-group-addon"><a href="javascript:;" data-k="{php echo ($k+1);}" data-mode="{$row['mode']}" data-catek="{$kk1}" class="add_cus_form_item_val"><i  class="fa fa-plus-circle"></i></a></span>
													</div>
													<?php  $cate_items = $vv1['cate_items']; ?>
													<div class="cus_form_cate_list">
														{loop $cate_items $kk2 $vv2}
														<div class="input-group" style="margin-top: 10px;">
															<?php  $cate_item_key = "[".$kk2."]"; ?>
															<span class="input-group-addon">选项值</span>
															<input type="text" name="{$prefix_filed}[vals]{$prefix_item_filed}[cate_items]{$cate_item_key}[name]" style="width: 180px;" class="form-control" value="{$vv2['name']}">
															<span class="input-group-addon">选项值模式</span>
															<select class="form-control" name="{$prefix_filed}[vals]{$prefix_item_filed}[cate_items]{$cate_item_key}[ischecked]">
																<option value="1" {if $vv2['ischecked']==1}selected{/if}>固定选项</option>
																<option value="2" {if $vv2['ischecked']==2}selected{/if}>正常选项</option>
															</select>
															<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_cate_item_val"><i  class="fa fa-times"></i></a></span>
														</div>
														{/loop}
													</div>
												</div>
											</div>
											{/loop}
											<div class="input-group" style="margin-top: 20px;">
												<span class="input-group-addon">最少</span>
												<input type="text" class="form-control"  placeholder="" name="{$prefix_filed}[vals_min]"  value="{$row['vals_min']}">
												<span class="input-group-addon">最多</span>
												<input type="text" class="form-control"  placeholder="" name="{$prefix_filed}[vals_max]"  value="{$row['vals_max']}">
											</div>
											<a href="javascript:;" class="add_cus_form_cate_main" data-k="{php echo ($k+1);}" data-mode="{$row['mode']}"  style="margin-top: 20px;padding-left: 190px"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加分类</a>
										{else}
										<input type="hidden" name="{$prefix_filed}[vals][]" value="{$row['vals'][0]}">
										{/if}

									</div>
								</div>
							</div>
							{/loop}
							{else}
							<div class="form-group">
								<label class="col-sm-2 col-xs-12 control-label">收集信息</label>
								<div class="col-sm-7 col-xs-12 input-group-parent cus-form-group">
									<div class="input-group">
										<input type="text" class="form-control"  placeholder="" name="cusForm[1][name]"  value="姓名" >
										<span class="input-group-addon">模式</span>
										<select class="form-control cus-form-select" name="cusForm[1][mode]" data-k="1">
											<option value="0" >文本</option>
											<option value="8" selected>姓名</option>
											<option value="1" >数字</option>
											<option value="6" >电话</option>
											<option value="7" >日期</option>
											<option value="2" >下拉菜单</option>
											<option value="3" >单选</option>
											<option value="4" >多选</option>
											<option value="5" >多选分类</option>
										</select>
										<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item"><i  class="fa fa-times"></i></a></span>
									</div>
									<div class="col-sm-8 col-xs-12 cus_form_item_val" >
										<input type="hidden" name="cusForm[1][vals][]" value="">
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 col-xs-12 control-label">收集信息</label>
								<div class="col-sm-7 col-xs-12 input-group-parent cus-form-group">
									<div class="input-group">
										<input type="text" class="form-control"  placeholder="" name="cusForm[2][name]"  value="电话" >
										<span class="input-group-addon">模式</span>
										<select class="form-control cus-form-select" name="cusForm[2][mode]" data-k="2">
											<option value="0" >文本</option>
											<option value="8" >姓名</option>
											<option value="1" >数字</option>
											<option value="6" selected >电话</option>
											<option value="7" >日期</option>
											<option value="2" >下拉菜单</option>
											<option value="3" >单选</option>
											<option value="4" >多选</option>
											<option value="5" >多选分类</option>
										</select>
										<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item"><i  class="fa fa-times"></i></a></span>
									</div>
									<div class="col-sm-8 col-xs-12 cus_form_item_val" >
										<input type="hidden" name="cusForm[2][vals][]" value="">
									</div>
								</div>
							</div>


							{/if}

						</div>
						<a href="javascript:;" class="add_cus_form_item"  style="margin-top: 20px;padding-left: 190px"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项</a>
					</div>
				</div>
		<script>
			var CUSITEMlENGTH = $("#cus_form_body").children('.cus_form_item').children('.form-group').length;
			<!--				追加选项-->
			$(".add_cus_form_item").click(function () {
				// var cus_form_item_length = $("#cus_form_body").children('.cus_form_item').children('.form-group').length;
				// var temp_num = cus_form_item_length+1;
				CUSITEMlENGTH+=1;
				var temp_num = CUSITEMlENGTH;

				var temp_html = '<div class="form-group">\n' +
						'\t\t\t\t\t\t\t\t\t<label class="col-sm-2 col-xs-12 control-label">收集信息</label>\n' +
						'\t\t\t\t\t\t\t\t\t<div class="col-sm-7 col-xs-12 input-group-parent">\n' +
						'\t\t\t\t\t\t\t\t\t\t<div class="input-group">\n' +
						'\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_num+'][name]"  value="">\n' +
						'\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">模式</span>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t<select class="form-control cus-form-select" name="cusForm['+temp_num+'][mode]" data-k="'+temp_num+'">\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="8" >姓名</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="6" >电话</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="0" selected>文本</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="1" >数字</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="7" >日期</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="2" >下拉菜单</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="3" >单选</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="4" >多选</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t\t<option value="5" >多选分类</option>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t</select>\n' +
						'\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item"><i  class="fa fa-times"></i></a></span>\n' +
						'\t\t\t\t\t\t\t\t\t\t</div>\n' +
						'<div class="col-sm-8 col-xs-12 cus_form_item_val" >\n' +
						'\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="cusForm['+temp_num+'][vals][]" value="">\n' +
						'\t\t\t\t\t\t\t\t\t\t</div>' +
						'\t\t\t\t\t\t\t\t\t</div>\n' +
						'\t\t\t\t\t\t\t\t</div>';
				$(".cus_form_item").append(temp_html);
			});

			//选项删除
			$("#cus_form_body").on("click",".del_cus_form_item",function () {
				$(this).parent().parent().parent().parent().remove();
			});

			//追加选项值
			$("#cus_form_body").on("click",".add_cus_form_item_val",function () {

				var temp_key = $(this).data("k");
				var temp_mode = $(this).data("mode");
				if (temp_mode==4){
					var temp_checkbox_length = $(this).prev().children(".input-group").length;
					var temp_html ='<div class="input-group" style="margin-top: 10px;">\n' +
							'<label class="input-group-addon" style="border: none;background: none">\n' +
							'<input name="cusForm['+temp_key+'][vals]['+temp_checkbox_length+'][ischecked]" value="1" type="radio">固定选项\n' +
							'&nbsp;' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input name="cusForm['+temp_key+'][vals]['+temp_checkbox_length+'][ischecked]" value="0" type="radio" checked>正常选项\n' +
							'</label>\n' +
							'<span class="input-group-addon">选项值</span>\n' +
							'<input type="text" name="cusForm['+temp_key+'][vals]['+temp_checkbox_length+'][name]" class="form-control" value="">\n' +
							'<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i  class="fa fa-times"></i></a></span>\n' +
							'</div>';
				}else if(temp_mode==5){
					var cate_k = $(this).data("catek");
					var curt_cate_items_length = $(this).parent().parent().parent().children('.cus_form_cate_list').children('.input-group').length;
					console.log(cate_k)
					console.log(curt_cate_items_length)
					var temp_html = '<div class="input-group" style="margin-top: 10px;">\n' +
							'<span class="input-group-addon">选项值</span>\n' +
							'<input type="text" name="cusForm['+temp_key+'][vals]['+cate_k+'][cate_items]['+curt_cate_items_length+'][name]" style="width: 180px;" class="form-control" value="">\n' +
							'<span class="input-group-addon">选项值模式</span>\n' +
							'<select class="form-control" name="cusForm['+temp_key+'][vals]['+cate_k+'][cate_items]['+curt_cate_items_length+'][ischecked]">\n' +
							'<option value="1" >固定选项</option>\n' +
							'<option value="2" selected>正常选项</option>\n' +
							'</select>\n' +
							'<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_cate_item_val"><i  class="fa fa-times"></i></a></span>\n' +
							'</div>';
					$(this).parent().parent().parent().children('.cus_form_cate_list').append(temp_html)
					return;
				}else{
					var temp_html = '<div class="input-group" style="margin-top: 10px;">\n' +
							'<span class="input-group-addon">选项值</span>\n' +
							'<input type="text" name="cusForm[' + temp_key +'][vals][]" value="" class="form-control" placeholder="选项值">\n' +
							'<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i class="fa fa-times"></i></a></span>\n' +
							'</div>';
				}
				$(this).prev().append(temp_html);
			});

			//模式选择移除添加元素
			$("#cus_form_body").on("change",".cus-form-select",function () {
				console.log('切换了')
				var temp_val = $(this).val();
				var temp_key = $(this).data("k");
				if (temp_val==2 || temp_val==3){
					$(this).parent().parent().find(".cus_form_item_val").remove();
					var temp_hl = '<div class="col-sm-8 col-xs-12 cus_form_item_val" style="margin-top: 20px;">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t<div >\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<div class="tpl">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">选项值</span>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="cusForm['+temp_key+'][vals][]" class="form-control" placeholder="选项值">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i  class="fa fa-times"></i></a></span>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<a href="javascript:;" class="add_cus_form_item_val" data-mode="'+temp_val+'" data-k="'+temp_key+'" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项值</a>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t</div>';
					$(this).parent().parent().append(temp_hl);
				}
				else if(temp_val==4){
					$(this).parent().parent().find(".cus_form_item_val").remove();
					var temp_hl ='<div class="col-sm-10 col-xs-12 cus_form_item_val" style="margin-top: 20px;">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t<div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<div class="tpl">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="input-group" style="margin-top: 10px;">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class="input-group-addon" style="border: none;background: none">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input name="cusForm['+temp_key+'][vals][0][ischecked]" value="1" type="radio">固定选项\n' +
							'&nbsp;' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input name="cusForm['+temp_key+'][vals][0][ischecked]" value="0" type="radio" checked>正常选项\n' +

							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">选项值</span>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="cusForm['+temp_key+'][vals][0][name]" class="form-control" value="">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon"><a href="javascript:;" class="del_cus_form_item_val"><i  class="fa fa-times"></i></a></span>\n' +
							'\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<a href="javascript:;" class="add_cus_form_item_val" data-mode="'+temp_val+'" data-k="'+temp_key+'" style="margin-top: 20px;"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加选项值</a>\n' +
							'\n' +
							'<div class="input-group" style="margin-top: 20px;">\n' +
							'\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最少</span>\n' +
							'\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_min]"  value="">\n' +
							'\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最多</span>\n' +
							'\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_max]"  value="">\n' +
							'\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t</div>';
					// var dd = '<div class="input-group">\n' +
					// 		'\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最少</span>\n' +
					// 		'\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_min]"  value="">\n' +
					// 		'\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最多</span>\n' +
					// 		'\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_max]"  value="">\n' +
					// 		'\t\t\t\t\t\t\t\t</div>';
					$(this).parent().parent().append(temp_hl);
				}else if(temp_val==5){
					$(this).parent().parent().find(".cus_form_item_val").remove();
					var temp_html = '<div class="col-sm-8 col-xs-12 cus_form_item_val" >\n' +
							'\t\t\t\t\t\t\t\t\t\t\t<div class="input-group" style="margin-top: 20px;">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最少</span>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_min]"  value="1">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">最多</span>\n' +
							'\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control"  placeholder="" name="cusForm['+temp_key+'][vals_max]"  value="1">\n' +
							'\t\t\t\t\t\t\t\t\t\t\t</div>\n' +
							'\t\t\t\t\t\t\t\t\t\t<a href="javascript:;" class="add_cus_form_cate_main" data-k="'+temp_key+'"  style="margin-top: 20px;padding-left: 190px"><i style="margin-top: 10px;" class="fa fa-plus-circle"></i> 添加分类</a>\n' +
							'\t\t\t\t\t\t\t\t\t</div>';
					$(this).parent().parent().append(temp_html);
				}else{
					$(this).parent().parent().find(".cus_form_item_val").remove();
					var temp_html = '<div class="col-sm-8 col-xs-12 cus_form_item_val" >\n' +
							'\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="cusForm['+temp_key+'][vals][]" value="">\n' +
							'\t\t\t\t\t\t\t\t\t\t</div>';
					$(this).parent().parent().append(temp_html);
				}
			});

			//选项值删除
			$('#cus_form_body').on("click",".del_cus_form_item_val",function(){
				$(this).parent().parent().remove();
			});
			//多选分类选项删除
			$('#cus_form_body').on("click",".del_cus_form_cate_item_val",function(){
				$(this).parent().parent().remove();
			});
			//多选分类删除
			$('#cus_form_body').on("click",".del_cus_form_cate_val",function(){
				$(this).parent().parent().parent().parent().remove();
			});
			//追加分类
			$("#cus_form_body").on("click",".add_cus_form_cate_main",function () {

				var temp_key = $(this).data("k");
				// var temp_cate_key = Number($(this).data("catek"));
				var temp_cate_key = $(this).parent().children('.cus_form_cate_main').length;
				console.log(temp_cate_key)
				var temp_html = '<div class="cus_form_cate_main">\n' +
						'                                                <div class="input-group" style="margin-top: 10px;">\n' +
						'                                                    <div class="cus_form_cate">\n' +
						'                                                        <span class="input-group-addon">分类名称</span>\n' +
						'                                                        <input type="text" name="cusForm['+temp_key+'][vals]['+temp_cate_key+'][cate_name]" style="width: 180px;" class="form-control" value="">\n' +
						'                                                        <span class="input-group-addon">最小选择数</span>\n' +
						'                                                        <input type="number" name="cusForm['+temp_key+'][vals]['+temp_cate_key+'][cate_min]" style="width: 60px;" class="form-control" value="0" min="0">\n' +
						'                                                        <span class="input-group-addon">最大选择数</span>\n' +
						'                                                        <input type="number" name="cusForm['+temp_key+'][vals]['+temp_cate_key+'][cate_max]" style="width: 60px;" class="form-control" value="1" min="1">\n' +
						'                                                        <span class="input-group-addon"><a href="javascript:;" class="del_cus_form_cate_val"><i  class="fa fa-times"></i></a></span>\n' +
						'                                                        <span class="input-group-addon"><a href="javascript:;" class="add_cus_form_item_val" data-mode="5" data-catek="'+temp_cate_key+'" data-k="'+temp_key+'"><i  class="fa fa-plus-circle"></i></a></span>\n' +
						'                                                    </div>\n' +
						'                                                    <div class="cus_form_cate_list">' +
						'                                                    </div>\n' +
						'                                                </div>\n' +
						'                                            </div>';
				$(this).prev().before(temp_html);
				// var temp_cate_key1 = Number($(this).data("catek"))+1;
				// $(this).data("catek",temp_cate_key1);
			});
		</script>
		{/if}

	</div>
		<!--		客资收集表单-->

			{if !$config['ad_style']}
			<div class="tab-pane" id="adset">
				<div class="panel panel-default" role="tabpanel" style="">
					<div class="panel-heading">弹屏广告</div>
					<div class="panel-body" >
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹屏广告</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_image('adimg',$config['adimg']);}
								<span class="help-block">弹屏广告尺寸不限,最好为PNG或GIF动图，可设置透明底色</span>
								<span class="help-block">居中大屏广告：建议尺寸1080*1701；底部横条广告：建议尺寸100*1008；右下角浮标：建议尺寸200*200</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹屏超链</label>
							<div class="col-sm-8 col-xs-12">
								<input type="text" class="form-control"  placeholder="" name="adurl"  value="{$config['adurl']}">
								<span class="help-block">弹屏超链接，可以用公众号等页面做一个详细的介绍</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">弹屏有效期</label>
							<div class="col-sm-8 col-xs-12">
								{php echo view_form_field_daterange('adtime', array('start'=>date('Y-m-d H:i:s',$config['adbegintime']),'end'=>date('Y-m-d H:i:s',$config['adendtime'])), true);}
								<span class="help-block">弹屏广告，只在有效期内打开活动链接才会出现</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">显示位置</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">位置</span>
									<select class="form-control" style="width: 170px;" name="adshow">
										<option value="0" {if $config['adshow']==0}selected="selected"{/if}>全屏弹窗</option>
										<option value="1" {if $config['adshow']==1}selected="selected"{/if} >底部横条</option>
										<option value="2" {if $config['adshow']==2}selected="selected"{/if} >右侧浮标</option>
									</select>
									<span class="input-group-addon">大小</span>
									<input type="text" style="width: 100px;" class="form-control" value="{if empty($config['adsize'])}100{else}{$config['adsize']}{/if}" name="adsize">
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 col-xs-12 control-label">出现频率</label>
							<div class="col-sm-5 col-xs-12">
								<div class="input-group">
									<span class="input-group-addon">同一用户出现</span>
									<input type="text" style="width: 100px;" class="form-control" value="{if empty($config['adshownum'])}999{else}{$config['adshownum']}{/if}" name="adshownum">
									<span class="input-group-addon">次</span>
									<select class="form-control"  style="width: 170px;" name="aduser">
										<option value="0" {if $config['aduser']==0}selected="selected"{/if}>所有用户出现</option>
										<option value="1" {if $config['aduser']==1}selected="selected"{/if} >未付款用户出现</option>
										<option value="2" {if $config['aduser']==2}selected="selected"{/if} >已付款用户出现</option>
										{if $system['selling_agent']==1}
										<option value="4" {if $config['aduser']==4}selected="selected"{/if} >代理</option>
										{/if}
									</select>
								</div>
							</div>
						</div>
					</div>

					<div class="panel-footer" >弹屏广告可用于活动提醒，开始转单提醒等</div>
				</div>
			</div>
			{/if}

		</div>
	</div>



	<div class="form-group" style="width:120px;position:fixed; right:30px; bottom:45%;z-index: 1000">
		<div class="col-sm-12">
			<input  name="submit" id="Confirm" type="submit" value="提交" class="btn btn-primary col-lg-12">
			<input type="hidden" name="__token__" value="{$Request.token}" />
		</div>
	</div>
	<div class="form-group" >
		<div class="col-sm-12">
			<input  name="submit" id="btnConfirm" type="submit" value="提交" class="btn btn-primary col-lg-3" style="width:120px;">
			<input type="hidden" name="__token__" value="{$Request.token}" />
			<input type="hidden" id="goto" name="goto" value="" />
			<span class="help-block col-lg-3"> 可按 ctrl+s 快速保存</span>
		</div>
	</div>
</form>
</div>

<style>
	.cus_form_cate{
		width: 40vw;
		display: flex;
	}
	.cus_form_cate span{
		width: 8vw;
		line-height: 22px;
	}
	.cus_form_cate_list{
		margin-left: 40px;
		width: 34vw;
	}
</style>
<script type="text/javascript">


	// $('[name="musicsrc"]').attr('style','visibility: hidden;');

	var pro_id = {php echo count($config['tuan_tips']);};
	function addTuanItem() {
		pro_id++;
		var html = "<div class=\"form-group\">\n";
		html += "<label class=\"col-sm-1 col-xs-12 control-label\">团" + pro_id + "：</label>\n";
		html += "<div class=\"col-sm-10 col-xs-12\">\n";
		html += "	<div class=\"col-sm-8 col-xs-12\">\n";
		html += "		<div class=\"input-group\">\n";
		html += "			<span class=\"input-group-addon\">成团人数</span>\n";
		html += "			<input style=\"width:20%\" type=\"text\" name=\"tuan_tips_num[]\" class=\"form-control\" placeholder=\"\" value=\"\">\n";
		html += "		</div>\n";
		html += "		<div class=\"input-group\">\n";
		html += "			<span class=\"input-group-addon\">礼品名称</span>\n";
		html += "			<input type=\"text\" name=\"tuan_tips_name[]\" class=\"form-control\" placeholder=\"\" value=\"\">\n";
		html += "		</div>\n";
		html += "	</div>\n";
		html += "	<div class=\"col-sm-4 col-xs-12\">\n";
		html += "			<div class=\"input-group \">\n";
		html += "			<input type=\"text\" name=\"tuan_tips_img[]\" value=\"\" class=\"form-control\" autocomplete=\"off\">\n";
		html += "			<span class=\"input-group-btn\">\n";
		html += "			<button class=\"btn btn-default\" type=\"button\" onclick=\"showImageDialog(this);\">选择图片</button>\n";
		html += "		</span>\n";
		html += "		</div>\n";
		html += "		<div class=\"input-group \" style=\"margin-top:.5em;\">\n";
		html += "			<img src=\"./resource/images/nopic.jpg\" onerror=\"this.src='./resource/images/nopic.jpg'; this.title='图片未找到.'\" class=\"img-responsive img-thumbnail\" width=\"150\">\n";
		html += "			<em class=\"close\" style=\"position:absolute; top: 0px; right: -14px;\" title=\"删除这张图片\" onclick=\"deleteImage(this)\">×</em>\n";
		html += "		</div>";
		html += "	</div>\n";
		html += "</div>\n";
		html += "</div>\n";
		$("#tuan_tips_items").append(html);
	}
</script>
<script type="text/javascript">
	$('.js-copy1').click(function(){
        util.clip($(".js-copy1"), $(this).attr('data-url'));
    });
    $('.js-copy2').click(function(){
        util.clip($(".js-copy2"), $(this).attr('data-url'));
    });
    $('.js-copy3').click(function(){
        util.clip($(".js-copy3"), $(this).attr('data-url'));
    });
</script>
<script type="text/javascript">
	$(function(){
		$('.js-clip').each(function(){
			util.clip(this, $(this).data('url'));
		});
		$('#form1').submit(function(){
			if($.trim($(':text[name="title"]').val()) == '') {
				layer.msg('请填写活动主标题');
				return false;
			}

			if (document.getElementById("softsn").value != '') {
				var hasIndustry = false;//用来判断是否选中了行业
				$("input[name='softtag0[]']:checked").each(function () {
					if (this.checked) {
						hasIndustry = true; //如果有选中的就赋值为 true 用来进行判断
						return false;
					}
				});
				// 通过hasIndustry 判断是否选中任何行业，如果没有选中任何行业，则弹窗提示并阻止提交表单
				if (!hasIndustry) {
					layer.msg("软件标签:行业必选，主题与节日须二选一！");
					$("#form1").submit(function (e) {
						e.preventDefault();
					});
					return false;
				} else {
					// 如果有选中行业，则移除阻止提交表单的事件
					$("#form1").off('submit').submit(function (e) {
						// 进行节日和主题的验证
						validateEventTheme();
					});
				}
				// 节日和主题至少选一个的验证
				function validateEventTheme() {
					var hasEvent = false;//判断主题
					var hasTheme = false;//判断节日
					$("input[name='softtag1[]']:checked").each(function () {
						if (this.checked) {
							hasTheme = true;
							return false;
						}
					});
					$("input[name='softtag2[]']:checked").each(function () {
						if (this.checked) {
							hasEvent = true;
							return false;
						}
					});
					if (!hasEvent && !hasTheme) {
						layer.msg("软件标签:行业已选，主题与节日须二选一！");
						return false;
					}
				}
			}
			if($.trim($(':text[name="comm41"]').val()) > 0) {
				if($.trim($(':text[name="comm4city"]').val()) == '') {
					layer.msg('开启转发红包,红包地区必须填写');
					return false;
				}
				if($.trim($(':text[name="comm4day"]').val()) == '') {
					layer.msg('开启转发红包,分销红包->每天预算多少钱必须填写');
					return false;
				}
				if($.trim($(':text[name="comm4daynum"]').val()) == '') {
					layer.msg('开启转发红包,分销红包->每天多少个必须填写');
					return false;
				}
			}
			var phone=document.getElementById("test_mobile").value;
			if (phone.length<9 && document.getElementById("softsn").value.length>0){
				layer.msg("请检查客服电话，座机必须带区号");
				return false;
			}
			if (phone.length>0){
				var phone_reg = new RegExp(/^((0\d{2}-\d{7,8})|(0\d{3}-\d{7,8}))$/);//区号 xxxx-xxxxxx
				var company_reg = /^400[0-9]{7}/;//400
				var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/;//手机号
				if(!phone_reg.test(phone) && !myreg.test(phone) && !company_reg.test(phone)) {
					layer.msg("请正确输入客服电话");
					return false;
				}
			}
			if($('select[name=addresstype]').val() && $('select[name=addresstype]').val() != '0' && !$('input[name=address]').val()) {
				layer.msg("请先输入②文本/选项");
				return false;
			}

			if($('select[name=formtwotype]').val() && $('select[name=formtwotype]').val() != '0' && !$('input[name=formtwo]').val()) {
				layer.msg("请先输入③文本/选项");
				return false;
			}

			// if($.trim($(':text[name="comm11"]').val()) > $.trim($(':text[name="comm12"]').val())) {
			// 	layer.msg('一级开团红包金额设置错误,可设10-20元或10-10元');
			// 	return false;
			// }
			// if($.trim($(':text[name="comm1"]').val()) > $.trim($(':text[name="comm2"]').val())) {
			// 	layer.msg('一级参团红包金额设置错误,可设10-20元或10-10元');
			// 	return false;
			// }
			// if($.trim($(':text[name="comm21"]').val()) > $.trim($(':text[name="comm22"]').val())) {
			// 	layer.msg('二级分销红包金额设置错误,可设10-20元或10-10元');
			// 	return false;
			// }
			// if($.trim($(':text[name="comm31"]').val()) > $.trim($(':text[name="comm32"]').val())) {
			// 	layer.msg('三级分销红包金额设置错误,可设10-20元或10-10元');
			// 	return false;
			// }
			// if($.trim($(':text[name="comm41"]').val()) > $.trim($(':text[name="comm42"]').val())) {
			// 	layer.msg('转发红包金额设置错误,可设1-2元或1-1元');
			// 	return false;
			// }
			// if($.trim($(':text[name="comm51"]').val()) > $.trim($(':text[name="comm52"]').val())) {
			// 	layer.msg('阅读红包金额设置错误,可设1-2元或1-1元');
			// 	return false;
			// }
		});
	});


</script>
<script type="text/javascript">

	//拼团继续加入，团邀请提醒；
	const select_tuanmode = $('select[name=tuanmode]');
	const group__show = $('div.group__show');
	if(select_tuanmode.val() == '1' || select_tuanmode.val() == '3') {
		group__show.show();
	}else {
		group__show.hide();
	}
	select_tuanmode.change(function() {
		if($(this).val() == '1' || $(this).val() == '3') {
			group__show.show();
		}else {
			group__show.hide();
		}
	})
	$('.addUserdata').click(function(){
		var option;
		{loop $type_list $index $item}
		option +='<option value="{$index}" >{$item['name']}</option>';
		{/loop}
		var html = '	      <div class="input-group">'+
'									<span class="input-group-addon">动作</span>'+
'									<select class="form-control" name="userdata_type[]">'+
'										<option value="" >请选择</option>'+
'										'+ option +
'									</select>'+
'									<span class="input-group-addon">筛选条件：达到</span>'+
'									<input type="text" name="userdata_greater[]" class="form-control" placeholder="" value="">'+
'									<span class="input-group-addon">次</span>'+
'									<span class="input-group-addon"><a href="javascript:;" class="delUserdata"><i  class="fa fa-times"></i></a></span>'+
'								</div>';

		$('#Userdata_list').append(html);
	});


	$('.delUserdata').click(function(){
		$(this).parent().parent().remove();
	});

	$('.addOptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="options[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="shops_price[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#options .tpl').append(html);
	});


	$('.delOptions').click(function(){
		$(this).parent().parent().remove();
	});

	$('.addaddressoptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="addressoptions[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#addressoptions .tpl').append(html);
	});


	$('.deladdressoptions').click(function(){
		$(this).parent().parent().remove();
	});

	$('.addformtwooptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="formtwooptions[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#formtwooptions .tpl').append(html);
	});


	$('.delformtwooptions').click(function(){
		$(this).parent().parent().remove();
	});


	$('.addgudingOptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="gudingoptions[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="shops_price_guding[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#gudingoptions .tpl').append(html);
	});


	$('.delgudingOptions').click(function(){
		$(this).parent().parent().remove();
	});


	{if $system['ispresale']==1}
	$('.presale_addOptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_options[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_options .tpl').append(html);
	});


	$('.presale_delOptions').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addaddressoptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_addressoptions[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_addressoptions .tpl').append(html);
	});


	$('.presale_deladdressoptions').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addformtwooptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_formtwooptions[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_formtwooptions .tpl').append(html);
	});


	$('.presale_delformtwooptions').click(function(){
		$(this).parent().parent().remove();
	});


	$('.presale_addgudingOptions').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_gudingoptions[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price_guding[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_gudingoptions .tpl').append(html);
	});


	$('.presale_delgudingOptions').click(function(){
		$(this).parent().parent().remove();
	});
	$('.presale_addOptions2').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_Options2[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_Options2 .tpl').append(html);
	});


	$('.presale_delOptions2').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addaddressOptions2').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_addressOptions2[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_addressOptions2 .tpl').append(html);
	});


	$('.presale_deladdressOptions2').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addformtwoOptions2').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_formtwoOptions2[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_formtwoOptions2 .tpl').append(html);
	});


	$('.presale_delformtwoOptions2').click(function(){
		$(this).parent().parent().remove();
	});


	$('.presale_addgudingOptions2').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_gudingOptions2[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price_guding[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_gudingOptions2 .tpl').append(html);
	});


	$('.presale_delgudingOptions2').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addOptions3').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_Options3[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_Options3 .tpl').append(html);
	});


	$('.presale_delOptions3').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addaddressOptions3').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_addressOptions3[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_addressOptions3 .tpl').append(html);
	});


	$('.presale_deladdressOptions3').click(function(){
		$(this).parent().parent().remove();
	});

	$('.presale_addformtwoOptions3').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_formtwoOptions3[]" class="form-control" placeholder="选项名称">'+
				'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
				'</div>';
		$('#presale_formtwoOptions3 .tpl').append(html);
	});


	$('.presale_delformtwoOptions3').click(function(){
		$(this).parent().parent().remove();
	});


	$('.presale_addgudingOptions3').click(function(){
		var html = '<div class="input-group" style="margin-top: 10px;">'+
				'<span class="input-group-addon">选项名称</span>'+
				'<input type="text" name="presale_gudingOptions3[]" class="form-control" placeholder="选项名称">'+
				{if $system['selecet_pay']==1 && in_array($config['presale']['shopstype'],[0,3,4])}
		'<span class="input-group-addon">价格</span>'+
		'<input type="text" name="presale_shops_price_guding[]" class="form-control" placeholder="0.00">'+
		{/if}
		'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
		'</div>';
		$('#presale_gudingOptions3 .tpl').append(html);
	});


	$('.presale_delgudingOptions3').click(function(){
		$(this).parent().parent().remove();
	});
	{/if}

		//价格2--开始
		$('.addOptions2').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="Options2[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#Options2 .tpl').append(html);
		});


		$('.delOptions2').click(function(){
			$(this).parent().parent().remove();
		});

		$('.addaddressOptions2').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="addressOptions2[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#addressOptions2 .tpl').append(html);
		});


		$('.deladdressOptions2').click(function(){
			$(this).parent().parent().remove();
		});
		$('.addformtwoOptions2').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="formtwoOptions2[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#formtwoOptions2 .tpl').append(html);
		});


		$('.delformtwoOptions2').click(function(){
			$(this).parent().parent().remove();
		});


		$('.addgudingOptions2').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="gudingOptions2[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#gudingOptions2 .tpl').append(html);
		});


		$('.delgudingOptions2').click(function(){
			$(this).parent().parent().remove();
		});
		//价格2--结束
		//价格3--开始
		$('.addOptions3').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="Options3[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#Options3 .tpl').append(html);
		});

		$('.delOptions3').click(function(){
			$(this).parent().parent().remove();
		});

		$('.addaddressOptions3').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="addressOptions3[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#addressOptions3 .tpl').append(html);
		});


		$('.deladdressOptions3').click(function(){
			$(this).parent().parent().remove();
		});
		$('.addformtwoOptions3').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="formtwoOptions3[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#formtwoOptions3 .tpl').append(html);
		});


		$('.delformtwoOptions3').click(function(){
			$(this).parent().parent().remove();
		});

		$('.addgudingOptions3').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">选项名称</span>'+
					'<input type="text" name="gudingOptions3[]" class="form-control" placeholder="选项名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#gudingOptions3 .tpl').append(html);
		});


		$('.delgudingOptions3').click(function(){
			$(this).parent().parent().remove();
		});
		//价格3--结束


		$('.addlipinOptions').click(function(){
			var html = '<div class="input-group" style="margin-top: 10px;">'+
					'<span class="input-group-addon">礼品名称</span>'+
					'<input type="text" name="lipinoptions[]" class="form-control" placeholder="礼品名称">'+
					'<span class="input-group-addon"><a href="javascript:;" class="" onclick="$(this).parent().parent().remove();"><i class="fa fa-times"></i></a></span>'+
					'</div>';
			$('#lipinoptions .tpl').append(html);
		});


		$('.dellipinOptions').click(function(){
			$(this).parent().parent().remove();
		});

</script>
<script type="text/javascript">
	function goto_url(url){
		$("#goto").val(url);
		$("#btnConfirm").click()
	}
	function formtwo_change() {
		var val = document.getElementById("formtwotype").value;
		var mut = document.getElementById('mut_formtwotype');
		var date = document.getElementById('date_formtwotype');
		if ( val ==2 || val ==3 ){
			mut.style.display = 'block';
			date.style.display = 'none';
		}else if ( val ==10 ){
			mut.style.display = 'none';
			date.style.display = 'block';
		}else{
			mut.style.display = 'none';
			date.style.display = 'none';
		}
	}
	function address_change() {
		var val = document.getElementById("addresstype").value;
		var mut = document.getElementById('mut_addresstype');
		if ( val ==2 || val ==3 ){
			mut.style.display = 'block';
		}else{
			mut.style.display = 'none';
		}
	}
	function shops_change() {
		var val = document.getElementById("shopstype").value;
		var mut = document.getElementById('mut_shopstype');
		var mut41 = document.getElementById('mut41_shopstype');
		var mut42 = document.getElementById('mut42_shopstype');
		if ( val == 0 || val == 3 || val == 4 || val == 5 ){
			mut.style.display = 'block';
		}else{
			mut.style.display = 'none';
		}
		if ( val ==4 ){
			mut41.style.display = 'block';
			mut42.style.display = 'block';
		}else{
			mut41.style.display = 'none';
			mut42.style.display = 'none';
		}
	}

	function presale_shops_change() {
		var val = document.getElementById("presale_shopstype").value;
		var mut = document.getElementById('presale_mut_shopstype');
		var mut41 = document.getElementById('presael_mut41_shopstype');
		var mut42 = document.getElementById('presale_mut42_shopstype');
		if ( val == 0 || val == 3 || val == 4 || val == 5 ){
			mut.style.display = 'block';
		}else{
			mut.style.display = 'none';
		}
		if ( val ==4 ){
			mut41.style.display = 'block';
			mut42.style.display = 'block';
		}else{
			mut41.style.display = 'none';
			mut42.style.display = 'none';
		}
	}

	$(window).bind('keydown', function(event) {
		if (event.ctrlKey || event.metaKey) {
			switch (String.fromCharCode(event.which).toLowerCase()) {
				case 's':
					event.preventDefault();
					$("#btnConfirm").click()
					break;
			}
		}
	});

	function drop_confirm(msg, url){
		if(confirm(msg)){
			window.location = url;
		}
	}

	var array = new Array(); //数组
	var arraylink = new Array(); //数组
	let arrOption = new Array();
	//js中的二维数组的下标可以使字符串
	{loop $musiclist $index $row}
	array['{$row['name']}'] = [{$row['listname']}];
	arraylink['{$row['name']}'] = [{$row['listlink']}];
	arrOption[{$index}] = {name: '{$row['name']}', list: [{$row['listname']}], url: [{$row['listlink']}]};
	{/loop}

		function flattenArr(arr = []) {
			return  arr.map(item => {
				return item.list.map((citem, cindex) => {
					return {id:`${item.name}-${cindex}`,name: item.name, link: citem, url: item.url[cindex]}
				})
			}).reduce((init, curr )=> {
				return init.concat(curr)
			}, [])
		}
		const musicArr =  flattenArr(arrOption);
		const str = musicArr.map((item, index) => {
			return `<option value="${item.id}">${item.link}</option>`
		}).join('');
		$('.selectpicker').append(str);
		$('.my-select').selectpicker();
		$('#selectMusic').change(function() {
			const val = $(this).val();
			if(val) {
				const filterData = musicArr.filter(item => item.id == val)[0];
				$('#musictype').val(filterData.name)
				var city = document.getElementById("musicname");
				city.options.length = 1;
				for(var p in array) {
					if(p == filterData.name) {
						//遍历每个省份的城市
						for(var c in array[p]) {
							//创建一个option
							var option = new Option(array[p][c], arraylink[p][c]);
							var city = document.getElementById("musicname");
							city.add(option);
						}
					}
				}
				$(city).val(filterData.url)
				$(".audio-player-media").val(filterData.url);
			}

		})
		//java:array[0] = {"",""};
		function initProvince() {
			for(var i in array) {
				var provinceObj = document.getElementById("musictype");
				//创建一个选项
				/**
				 * 参数一是：展示数据
				 * 参数二是：value属性的值
				 */
				var option = new Option(i, i); //jquery

				provinceObj.add(option); //把创建的option添加到下拉列表中
				{if $system['is_lz_game']=='1'}
				var provinceObj1 = document.getElementById("game_musictype");
				//创建一个选项
				/**
				 * 参数一是：展示数据
				 * 参数二是：value属性的值
				 */
				var option1 = new Option(i, i); //jquery

				provinceObj1.add(option1); //把创建的option添加到下拉列表中
				{/if}

				}
			}

			function changemusic() {
				var provinceName = document.getElementById("musictype").value;
				//得到第一个下拉列表的值
				var city = document.getElementById("musicname");
				//清空第二个下拉列表
				//方法一
				//city.innerHTML = "";
				//方法二
				city.options.length = 1;
				for(var p in array) {
					if(p == provinceName) {
						//遍历每个省份的城市
						for(var c in array[p]) {
							//创建一个option
							var option = new Option(array[p][c], arraylink[p][c]);
							var city = document.getElementById("musicname");
							city.add(option);
						}
					}
				}
			}
			//游戏使用
			function changegamemusic() {
				var provinceName = document.getElementById("game_musictype").value;
				//得到第一个下拉列表的值
				var city = document.getElementById("game_musicname");
				//清空第二个下拉列表
				//方法一
				//city.innerHTML = "";
				//方法二
				city.options.length = 1;
				for(var p in array) {
					if(p == provinceName) {
						//遍历每个省份的城市
						for(var c in array[p]) {
							//创建一个option
							var option = new Option(array[p][c], arraylink[p][c]);
							var city = document.getElementById("game_musicname");
							city.add(option);
						}
					}
				}
			}
			function changegamemusicname() {
				var musicname = document.getElementById("game_musicname").value;
				$(".audio-player-media").val(musicname);
			}
			//游戏使用结束
			function changemusicname() {
				var musicname = document.getElementById("musicname").value;
				$(".audio-player-media").val(musicname);
			}
			initProvince();


			{if $system['ispresale']==1}
			function presale_initProvince() {
				for(var i in array) {
					var provinceObj = document.getElementById("presale_musictype");
					//创建一个选项
					/**
					 * 参数一是：展示数据
					 * 参数二是：value属性的值
					 */
					var option = new Option(i, i); //jquery

					provinceObj.add(option); //把创建的option添加到下拉列表中

				}
			}

			function presale_changemusic() {
				var provinceName = document.getElementById("presale_musictype").value;
				//得到第一个下拉列表的值
				var city = document.getElementById("presale_musicname");
				//清空第二个下拉列表
				//方法一
				//city.innerHTML = "";
				//方法二
				city.options.length = 1;
				for(var p in array) {
					if(p == provinceName) {
						//遍历每个省份的城市
						for(var c in array[p]) {
							//创建一个option
							var option = new Option(array[p][c], arraylink[p][c]);
							var city = document.getElementById("presale_musicname");
							city.add(option);
						}
					}
				}
			}
			function presale_changemusicname() {
				var musicname = document.getElementById("presale_musicname").value;
				$(".audio-player-media").eq(1).val(musicname);
			}
			presale_initProvince();
			{/if}

</script>
{if $_G['isSuperAdmin']}
{include file='theme_tts'}
{/if}